Commit 96b5b194 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by Jessica Yu

module: make the modinfo name const

This can be accomplished by making blacklisted() also accept const.
Signed-off-by: default avatarLuis R. Rodriguez <mcgrof@kernel.org>
Acked-by: default avatarKees Cook <keescook@chromium.org>
[jeyu: fix typo]
Signed-off-by: default avatarJessica Yu <jeyu@kernel.org>
parent 165d1cc0
...@@ -302,7 +302,7 @@ int unregister_module_notifier(struct notifier_block *nb) ...@@ -302,7 +302,7 @@ int unregister_module_notifier(struct notifier_block *nb)
EXPORT_SYMBOL(unregister_module_notifier); EXPORT_SYMBOL(unregister_module_notifier);
struct load_info { struct load_info {
char *name; const char *name;
Elf_Ehdr *hdr; Elf_Ehdr *hdr;
unsigned long len; unsigned long len;
Elf_Shdr *sechdrs; Elf_Shdr *sechdrs;
...@@ -3265,7 +3265,7 @@ int __weak module_frob_arch_sections(Elf_Ehdr *hdr, ...@@ -3265,7 +3265,7 @@ int __weak module_frob_arch_sections(Elf_Ehdr *hdr,
/* module_blacklist is a comma-separated list of module names */ /* module_blacklist is a comma-separated list of module names */
static char *module_blacklist; static char *module_blacklist;
static bool blacklisted(char *module_name) static bool blacklisted(const char *module_name)
{ {
const char *p; const char *p;
size_t len; size_t len;
......
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