Skip to content

Commit cde26a6

Browse files
committed
kallsyms: fix type of kallsyms_token_table[]
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]>
1 parent 8d60526 commit cde26a6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

kernel/kallsyms.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ __attribute__((weak, section(".rodata")));
4444
extern const unsigned long kallsyms_relative_base
4545
__attribute__((weak, section(".rodata")));
4646

47-
extern const u8 kallsyms_token_table[] __weak;
47+
extern const char kallsyms_token_table[] __weak;
4848
extern const u16 kallsyms_token_index[] __weak;
4949

5050
extern const unsigned int kallsyms_markers[] __weak;
@@ -58,7 +58,8 @@ static unsigned int kallsyms_expand_symbol(unsigned int off,
5858
char *result, size_t maxlen)
5959
{
6060
int len, skipped_first = 0;
61-
const u8 *tptr, *data;
61+
const char *tptr;
62+
const u8 *data;
6263

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

0 commit comments

Comments
 (0)