diff options
author | Jan Beulich <JBeulich@suse.com> | 2018-09-03 08:09:34 -0400 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-09-10 09:54:33 -0400 |
commit | 80ffbaa5b1bd98e80e3239a3b8cfda2da433009a (patch) | |
tree | 273d231bfd0908bcd0aaca8ab6ad159598cc06e4 /kernel/kallsyms.c | |
parent | 11da3a7f84f19c26da6f86af878298694ede0804 (diff) |
kallsyms: reduce size a little on 64-bit
Both kallsyms_num_syms and kallsyms_markers[] don't really need to use
unsigned long as their (base) types; unsigned int fully suffices.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'kernel/kallsyms.c')
-rw-r--r-- | kernel/kallsyms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 02a0b01380d8..f3a04994e063 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c | |||
@@ -37,7 +37,7 @@ extern const u8 kallsyms_names[] __weak; | |||
37 | * Tell the compiler that the count isn't in the small data section if the arch | 37 | * Tell the compiler that the count isn't in the small data section if the arch |
38 | * has one (eg: FRV). | 38 | * has one (eg: FRV). |
39 | */ | 39 | */ |
40 | extern const unsigned long kallsyms_num_syms | 40 | extern const unsigned int kallsyms_num_syms |
41 | __attribute__((weak, section(".rodata"))); | 41 | __attribute__((weak, section(".rodata"))); |
42 | 42 | ||
43 | extern const unsigned long kallsyms_relative_base | 43 | extern const unsigned long kallsyms_relative_base |
@@ -46,7 +46,7 @@ __attribute__((weak, section(".rodata"))); | |||
46 | extern const u8 kallsyms_token_table[] __weak; | 46 | extern const u8 kallsyms_token_table[] __weak; |
47 | extern const u16 kallsyms_token_index[] __weak; | 47 | extern const u16 kallsyms_token_index[] __weak; |
48 | 48 | ||
49 | extern const unsigned long kallsyms_markers[] __weak; | 49 | extern const unsigned int kallsyms_markers[] __weak; |
50 | 50 | ||
51 | /* | 51 | /* |
52 | * Expand a compressed symbol data into the resulting uncompressed string, | 52 | * Expand a compressed symbol data into the resulting uncompressed string, |