Skip to content

Commit

Permalink
kallsyms: fix type of kallsyms_token_table[]
Browse files Browse the repository at this point in the history
kallsyms_token_table[] only contains ASCII characters. It should be
char instead of u8.

Signed-off-by: Masahiro Yamada <[email protected]>
Reviewed-by: Masami Hiramatsu <[email protected]>
  • Loading branch information
masahir0y committed Feb 5, 2020
1 parent 8d60526 commit cde26a6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions kernel/kallsyms.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ __attribute__((weak, section(".rodata")));
extern const unsigned long kallsyms_relative_base
__attribute__((weak, section(".rodata")));

extern const u8 kallsyms_token_table[] __weak;
extern const char kallsyms_token_table[] __weak;
extern const u16 kallsyms_token_index[] __weak;

extern const unsigned int kallsyms_markers[] __weak;
Expand All @@ -58,7 +58,8 @@ static unsigned int kallsyms_expand_symbol(unsigned int off,
char *result, size_t maxlen)
{
int len, skipped_first = 0;
const u8 *tptr, *data;
const char *tptr;
const u8 *data;

/* Get the compressed symbol length from the first symbol byte. */
data = &kallsyms_names[off];
Expand Down

0 comments on commit cde26a6

Please sign in to comment.