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 /scripts | |
| 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 'scripts')
| -rw-r--r-- | scripts/kallsyms.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c index a9186a98a37d..085b6a584fe0 100644 --- a/scripts/kallsyms.c +++ b/scripts/kallsyms.c | |||
| @@ -405,7 +405,7 @@ static void write_src(void) | |||
| 405 | } | 405 | } |
| 406 | 406 | ||
| 407 | output_label("kallsyms_num_syms"); | 407 | output_label("kallsyms_num_syms"); |
| 408 | printf("\tPTR\t%u\n", table_cnt); | 408 | printf("\t.long\t%u\n", table_cnt); |
| 409 | printf("\n"); | 409 | printf("\n"); |
| 410 | 410 | ||
| 411 | /* table of offset markers, that give the offset in the compressed stream | 411 | /* table of offset markers, that give the offset in the compressed stream |
| @@ -434,7 +434,7 @@ static void write_src(void) | |||
| 434 | 434 | ||
| 435 | output_label("kallsyms_markers"); | 435 | output_label("kallsyms_markers"); |
| 436 | for (i = 0; i < ((table_cnt + 255) >> 8); i++) | 436 | for (i = 0; i < ((table_cnt + 255) >> 8); i++) |
| 437 | printf("\tPTR\t%d\n", markers[i]); | 437 | printf("\t.long\t%u\n", markers[i]); |
| 438 | printf("\n"); | 438 | printf("\n"); |
| 439 | 439 | ||
| 440 | free(markers); | 440 | free(markers); |
