diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-09 18:50:40 +0900 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-05-17 22:45:00 +0900 |
commit | 8b1857436baa2b9b6d7330715180aa47a63b15ca (patch) | |
tree | fd9bcc4194e3afa9fe189cd9df0d551401068592 | |
parent | 074a04f572effefe410d7ee452cf3755e828c031 (diff) | |
download | linux-8b1857436baa2b9b6d7330715180aa47a63b15ca.tar.gz linux-8b1857436baa2b9b6d7330715180aa47a63b15ca.tar.bz2 linux-8b1857436baa2b9b6d7330715180aa47a63b15ca.zip |
modpost: constify *modname function argument where possible
Neither find_module() nor read_symbols() does change *modname.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
-rw-r--r-- | scripts/mod/modpost.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c index 9e70a6ac1fcb..1663fb19343a 100644 --- 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(const char *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(const char *modname) { const char *symname; char *version; |