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>
This commit is contained in:
Masahiro Yamada 2019-11-24 01:04:37 +09:00
parent aa91524500
commit 2558c138ac
1 changed files with 2 additions and 1 deletions

View File

@ -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;