diff options
author | Masahiro Yamada <masahiroy@kernel.org> | 2020-02-02 06:09:22 +0100 |
---|---|---|
committer | Masahiro Yamada <masahiroy@kernel.org> | 2020-02-05 05:45:37 +0100 |
commit | cde26a6e17ec36f6f20102a7e5767c2a0096c95f (patch) | |
tree | 3b95ba15d09f64d4eefa9a98e6d335e16d395a40 /kernel/kallsyms.c | |
parent | scripts/kallsyms: change table to store (strcut sym_entry *) (diff) | |
download | linux-cde26a6e17ec36f6f20102a7e5767c2a0096c95f.tar.xz linux-cde26a6e17ec36f6f20102a7e5767c2a0096c95f.zip |
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 <masahiroy@kernel.org>
Reviewed-by: Masami Hiramatsu <mhiramat@kernel.org>
Diffstat (limited to 'kernel/kallsyms.c')
-rw-r--r-- | kernel/kallsyms.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/kallsyms.c b/kernel/kallsyms.c index 136ce049c4ad..53f84f685841 100644 --- a/kernel/kallsyms.c +++ b/kernel/kallsyms.c @@ -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; @@ -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]; |