Commit 8b185743 authored by Masahiro Yamada's avatar Masahiro Yamada

modpost: constify *modname function argument where possible

Neither find_module() nor read_symbols() does change *modname.
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 074a04f5
...@@ -121,7 +121,7 @@ void *do_nofail(void *ptr, const char *expr) ...@@ -121,7 +121,7 @@ void *do_nofail(void *ptr, const char *expr)
/* A list of all modules we processed */ /* A list of all modules we processed */
static struct module *modules; static struct module *modules;
static struct module *find_module(char *modname) static struct module *find_module(const char *modname)
{ {
struct module *mod; struct module *mod;
...@@ -1929,7 +1929,7 @@ static char *remove_dot(char *s) ...@@ -1929,7 +1929,7 @@ static char *remove_dot(char *s)
return s; return s;
} }
static void read_symbols(char *modname) static void read_symbols(const char *modname)
{ {
const char *symname; const char *symname;
char *version; char *version;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment