summaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-23 17:04:43 +0100
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-25 13:06:49 +0100
commitd44270fc976b6c3b9e742e398580e4af8c69f7bd (patch)
tree5bfe202b983c97a943ec7b1b7fc5a26299f6cf53 /scripts/kallsyms.c
parentscripts/kallsyms: make check_symbol_range() void function (diff)
downloadlinux-d44270fc976b6c3b9e742e398580e4af8c69f7bd.tar.xz
linux-d44270fc976b6c3b9e742e398580e4af8c69f7bd.zip
scripts/kallsyms: put check_symbol_range() calls close together
Put the relevant code close together. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts/kallsyms.c')
-rw-r--r--scripts/kallsyms.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index f4d5f131556d..b9b1a4cf1c65 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -200,6 +200,7 @@ static int read_symbol(FILE *in, struct sym_entry *s)
_text = s->addr;
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
* compressed together */
@@ -215,9 +216,6 @@ static int read_symbol(FILE *in, struct sym_entry *s)
s->percpu_absolute = 0;
- /* Record if we've found __per_cpu_start/end. */
- check_symbol_range(sym, s->addr, &percpu_range, 1);
-
return 0;
}