提交 76954527 编写于 作者: M Masahiro Yamada

modpost: remove the unused argument of check_sec_ref()

check_sec_ref() does not use the first parameter 'mod'.
Signed-off-by: NMasahiro Yamada <masahiroy@kernel.org>
Reviewed-by: NNick Desaulniers <ndesaulniers@google.com>
上级 d6b73266
...@@ -1884,8 +1884,7 @@ static void section_rel(const char *modname, struct elf_info *elf, ...@@ -1884,8 +1884,7 @@ static void section_rel(const char *modname, struct elf_info *elf,
* to find all references to a section that reference a section that will * to find all references to a section that reference a section that will
* be discarded and warns about it. * be discarded and warns about it.
**/ **/
static void check_sec_ref(struct module *mod, const char *modname, static void check_sec_ref(const char *modname, struct elf_info *elf)
struct elf_info *elf)
{ {
int i; int i;
Elf_Shdr *sechdrs = elf->sechdrs; Elf_Shdr *sechdrs = elf->sechdrs;
...@@ -2091,7 +2090,7 @@ static void read_symbols(const char *modname) ...@@ -2091,7 +2090,7 @@ static void read_symbols(const char *modname)
} }
} }
check_sec_ref(mod, modname, &info); check_sec_ref(modname, &info);
if (!mod->is_vmlinux) { if (!mod->is_vmlinux) {
version = get_modinfo(&info, "version"); version = get_modinfo(&info, "version");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册