History

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.

Jan Beulich committed 8 years ago

Commit 80ffbaa1 parent 11da3a72 files · +4 −4Browse files

Unified · Split

2 files
  1. kernel/kallsyms.c +2 −2
  2. scripts/kallsyms.c +2 −2
kernel/kallsyms.c+2−2
@@ -37,7 +37,7 @@ extern const u8 kallsyms_names[] __weak; · 36 unmodified lines
37 * Tell the compiler that the count isn't in the small data section if the arch37 * 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 */
40extern const unsigned long kallsyms_num_syms40extern const unsigned int kallsyms_num_syms
41__attribute__((weak, section(".rodata")));41__attribute__((weak, section(".rodata")));
42 42
43extern const unsigned long kallsyms_relative_base43extern const unsigned long kallsyms_relative_base
@@ -46,7 +46,7 @@ __attribute__((weak, section(".rodata"))); · 2 unmodified lines
46extern const u8 kallsyms_token_table[] __weak;46extern const u8 kallsyms_token_table[] __weak;
47extern const u16 kallsyms_token_index[] __weak;47extern const u16 kallsyms_token_index[] __weak;
48 48
49extern const unsigned long kallsyms_markers[] __weak;49extern 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,
scripts/kallsyms.c+2−2
@@ -405,7 +405,7 @@ static void write_src(void) · 404 unmodified lines
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 stream411 /* table of offset markers, that give the offset in the compressed stream
@@ -434,7 +434,7 @@ static void write_src(void) · 22 unmodified lines
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);