projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
074a04f
)
modpost: constify *modname function argument where possible
author
Masahiro Yamada
<yamada.masahiro@socionext.com>
Wed, 9 May 2018 09:50:40 +0000
(18:50 +0900)
committer
Masahiro Yamada
<yamada.masahiro@socionext.com>
Thu, 17 May 2018 13:45:00 +0000
(22:45 +0900)
Neither find_module() nor read_symbols() does change *modname.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/mod/modpost.c
patch
|
blob
|
history
diff --git
a/scripts/mod/modpost.c
b/scripts/mod/modpost.c
index
9e70a6a
..
1663fb1
100644
(file)
--- a/
scripts/mod/modpost.c
+++ b/
scripts/mod/modpost.c
@@
-121,7
+121,7
@@
void *do_nofail(void *ptr, const char *expr)
/* A list of all modules we processed */
static struct module *modules;
-static struct module *find_module(char *modname)
+static struct module *find_module(c
onst c
har *modname)
{
struct module *mod;
@@
-1929,7
+1929,7
@@
static char *remove_dot(char *s)
return s;
}
-static void read_symbols(char *modname)
+static void read_symbols(c
onst c
har *modname)
{
const char *symname;
char *version;