kallsyms: unify seq and start_pos fields of struct sym_entry

The struct sym_entry uses the 'seq' and 'start_pos' fields to remember
the index in the symbol table. They serve the same purpose and are not
used simultaneously. Unify them.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>

+2 -3
+2 -3
scripts/kallsyms.c
··· 36 unsigned long long addr; 37 unsigned int len; 38 unsigned int seq; 39 - unsigned int start_pos; 40 unsigned int percpu_absolute; 41 unsigned char sym[]; 42 }; ··· 277 if (!sym) 278 continue; 279 280 - sym->start_pos = table_cnt; 281 282 if (table_cnt >= table_size) { 283 table_size += 10000; ··· 761 return wa - wb; 762 763 /* sort by initial order, so that other symbols are left undisturbed */ 764 - return sa->start_pos - sb->start_pos; 765 } 766 767 static void sort_symbols(void)
··· 36 unsigned long long addr; 37 unsigned int len; 38 unsigned int seq; 39 unsigned int percpu_absolute; 40 unsigned char sym[]; 41 }; ··· 278 if (!sym) 279 continue; 280 281 + sym->seq = table_cnt; 282 283 if (table_cnt >= table_size) { 284 table_size += 10000; ··· 762 return wa - wb; 763 764 /* sort by initial order, so that other symbols are left undisturbed */ 765 + return sa->seq - sb->seq; 766 } 767 768 static void sort_symbols(void)