projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aa91524
)
scripts/kallsyms: make find_token() return (unsigned char *)
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Sat, 23 Nov 2019 16:04:37 +0000
(
01:04
+0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Mon, 25 Nov 2019 12:04:11 +0000
(21:04 +0900)
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>
scripts/kallsyms.c
patch
|
blob
|
history
diff --git
a/scripts/kallsyms.c
b/scripts/kallsyms.c
index 89cc7c098c5187326f17d639ea10183d8c0f3da0..274a77bfbd631f51fce8f89377d9e97fe2317719 100644
(file)
--- 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;