aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kallsyms.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-24 01:04:37 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-11-25 21:04:11 +0900
commit2558c138aca75e5fc435e20fd37f0b0eea61bb65 (patch)
treeddb82c38bc29bdb53d12f4e464d5a66a5d108e5b /scripts/kallsyms.c
parentscripts/kallsyms: replace prefix_underscores_count() with strspn() (diff)
downloadlinux-dev-2558c138aca75e5fc435e20fd37f0b0eea61bb65.tar.xz
linux-dev-2558c138aca75e5fc435e20fd37f0b0eea61bb65.zip
scripts/kallsyms: make find_token() return (unsigned char *)
The callers of this function expect (unsigned char *). I do not see a good reason to make this function return (void *). Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to '')
-rw-r--r--scripts/kallsyms.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scripts/kallsyms.c b/scripts/kallsyms.c
index 89cc7c098c51..274a77bfbd63 100644
--- a/scripts/kallsyms.c
+++ b/scripts/kallsyms.c
@@ -503,7 +503,8 @@ static void build_initial_tok_table(void)
learn_symbol(table[i].sym, table[i].len);
}
-static void *find_token(unsigned char *str, int len, unsigned char *token)
+static unsigned char *find_token(unsigned char *str, int len,
+ unsigned char *token)
{
int i;