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