scripts/kallsyms: put check_symbol_range() calls close together
Put the relevant code close together. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
parent
b6233d0ded
commit
d44270fc97
@ -200,6 +200,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
|
|||||||
_text = s->addr;
|
_text = s->addr;
|
||||||
|
|
||||||
check_symbol_range(sym, s->addr, text_ranges, ARRAY_SIZE(text_ranges));
|
check_symbol_range(sym, s->addr, text_ranges, ARRAY_SIZE(text_ranges));
|
||||||
|
check_symbol_range(sym, s->addr, &percpu_range, 1);
|
||||||
|
|
||||||
/* include the type field in the symbol name, so that it gets
|
/* include the type field in the symbol name, so that it gets
|
||||||
* compressed together */
|
* compressed together */
|
||||||
@ -215,9 +216,6 @@ static int read_symbol(FILE *in, struct sym_entry *s)
|
|||||||
|
|
||||||
s->percpu_absolute = 0;
|
s->percpu_absolute = 0;
|
||||||
|
|
||||||
/* Record if we've found __per_cpu_start/end. */
|
|
||||||
check_symbol_range(sym, s->addr, &percpu_range, 1);
|
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user