summaryrefslogtreecommitdiffstats
path: root/scripts/mod
diff options
context:
space:
mode:
authorMasahiro Yamada <masahiroy@kernel.org>2022-05-24 01:46:23 +0900
committerMasahiro Yamada <masahiroy@kernel.org>2022-05-27 16:10:10 +0900
commit76954527fe05354add150737aa1b9a6baa4a6ee5 (patch)
tree41cf0d65a3b3118d81513f39089464c1deeed34b /scripts/mod
parentd6b732666a1bae0df3c3ae06925043bba34502b1 (diff)
downloadlinux-76954527fe05354add150737aa1b9a6baa4a6ee5.tar.gz
linux-76954527fe05354add150737aa1b9a6baa4a6ee5.tar.bz2
linux-76954527fe05354add150737aa1b9a6baa4a6ee5.zip
modpost: remove the unused argument of check_sec_ref()
check_sec_ref() does not use the first parameter 'mod'. Signed-off-by: Masahiro Yamada <masahiroy@kernel.org> Reviewed-by: Nick Desaulniers <ndesaulniers@google.com>
Diffstat (limited to 'scripts/mod')
-rw-r--r--scripts/mod/modpost.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/scripts/mod/modpost.c b/scripts/mod/modpost.c
index 1092906867f0..2806a5c528c8 100644
--- a/scripts/mod/modpost.c
+++ b/scripts/mod/modpost.c
@@ -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
* be discarded and warns about it.
**/
-static void check_sec_ref(struct module *mod, const char *modname,
- struct elf_info *elf)
+static void check_sec_ref(const char *modname, struct elf_info *elf)
{
int i;
Elf_Shdr *sechdrs = elf->sechdrs;
@@ -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) {
version = get_modinfo(&info, "version");