Skip to content

Commit d44270f

Browse files
committed
scripts/kallsyms: put check_symbol_range() calls close together
Put the relevant code close together. Signed-off-by: Masahiro Yamada <[email protected]>
1 parent b6233d0 commit d44270f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

scripts/kallsyms.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,6 +200,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
200200
_text = s->addr;
201201

202202
check_symbol_range(sym, s->addr, text_ranges, ARRAY_SIZE(text_ranges));
203+
check_symbol_range(sym, s->addr, &percpu_range, 1);
203204

204205
/* include the type field in the symbol name, so that it gets
205206
* compressed together */
@@ -215,9 +216,6 @@ static int read_symbol(FILE *in, struct sym_entry *s)
215216

216217
s->percpu_absolute = 0;
217218

218-
/* Record if we've found __per_cpu_start/end. */
219-
check_symbol_range(sym, s->addr, &percpu_range, 1);
220-
221219
return 0;
222220
}
223221

0 commit comments

Comments
 (0)