Both kallsyms_num_syms and kallsyms_markers[] don't really need to use unsigned long as their (base) types; unsigned int fully suffices.
Showing the changes to scripts (1 of 2 files). Show all
Unified · Split
| @@ -405,7 +405,7 @@ static void write_src(void) · 404 unmodified lines | ||
| 405 | 405 | } |
| 406 | 406 | |
| 407 | 407 | output_label("kallsyms_num_syms"); |
| 408 | − printf("\tPTR\t%u\n", table_cnt); | |
| 408 | + printf("\t.long\t%u\n", table_cnt); | |
| 409 | 409 | printf("\n"); |
| 410 | 410 | |
| 411 | 411 | /* 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 | 435 | output_label("kallsyms_markers"); |
| 436 | 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 | 438 | printf("\n"); |
| 439 | 439 | |
| 440 | 440 | free(markers); |