projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b6233d0
)
scripts/kallsyms: put check_symbol_range() calls close together
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 16:04:43 +0000
(
01:04
+0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Mon, 25 Nov 2019 12:06:49 +0000
(21:06 +0900)
Put the relevant code close together.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kallsyms.c
patch
|
blob
|
history
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index f4d5f131556d1f4478e685bbc5ee9dcca82ec468..b9b1a4cf1c65d901976d4c5ecfac19630b13d36f 100644
(file)
--- 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;
}