Masahiro Yamada 29e55ad3d5 scripts/kallsyms: add sym_name() to mitigate cast ugliness
sym_entry::sym is (unsigned char *) instead of (char *) because
kallsyms exploits the MSB for compression, and the characters are
used as the index of token_profit array.

However, it requires casting (unsigned char *) to (char *) in some
places since standard library functions such as strcmp(), strlen()
expect (char *).

Introduce a new helper, sym_name(), which advances the given pointer
by 1 and casts it to (char *).

Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
2019-11-25 21:03:33 +09:00
..
2019-07-11 18:35:30 -07:00
2017-03-28 16:16:52 +02:00
2019-08-12 15:00:37 -06:00
2019-09-20 08:36:47 -07:00
2017-11-14 18:25:40 -08:00
2019-05-06 11:12:09 -07:00