Skip to content

Commit 7695452

Browse files
committed
modpost: remove the unused argument of check_sec_ref()
check_sec_ref() does not use the first parameter 'mod'. Signed-off-by: Masahiro Yamada <[email protected]> Reviewed-by: Nick Desaulniers <[email protected]>
1 parent d6b7326 commit 7695452

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

scripts/mod/modpost.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1884,8 +1884,7 @@ static void section_rel(const char *modname, struct elf_info *elf,
18841884
* to find all references to a section that reference a section that will
18851885
* be discarded and warns about it.
18861886
**/
1887-
static void check_sec_ref(struct module *mod, const char *modname,
1888-
struct elf_info *elf)
1887+
static void check_sec_ref(const char *modname, struct elf_info *elf)
18891888
{
18901889
int i;
18911890
Elf_Shdr *sechdrs = elf->sechdrs;
@@ -2091,7 +2090,7 @@ static void read_symbols(const char *modname)
20912090
}
20922091
}
20932092

2094-
check_sec_ref(mod, modname, &info);
2093+
check_sec_ref(modname, &info);
20952094

20962095
if (!mod->is_vmlinux) {
20972096
version = get_modinfo(&info, "version");

0 commit comments

Comments
 (0)