summaryrefslogtreecommitdiffstats
path: root/kernel/module
diff options
context:
space:
mode:
authorZhen Lei <thunder.leizhen@huawei.com>2023-03-08 08:38:46 +0100
committerLuis Chamberlain <mcgrof@kernel.org>2023-03-19 21:27:19 +0100
commit3703bd54cd37e7875f51ece8df8c85c184e40bba (patch)
treef47e4a4efc30f913dca20e23ff95323b2e0a1463 /kernel/module
parentdyndbg: cleanup dynamic usage in ib_srp.c (diff)
downloadlinux-3703bd54cd37e7875f51ece8df8c85c184e40bba.tar.xz
linux-3703bd54cd37e7875f51ece8df8c85c184e40bba.zip
kallsyms: Delete an unused parameter related to {module_}kallsyms_on_each_symbol()
The parameter 'struct module *' in the hook function associated with {module_}kallsyms_on_each_symbol() is no longer used. Delete it. Suggested-by: Petr Mladek <pmladek@suse.com> Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Reviewed-by: Vincenzo Palazzo <vincenzopalazzodev@gmail.com> Acked-by: Jiri Olsa <jolsa@kernel.org> Acked-by: Steven Rostedt (Google) <rostedt@goodmis.org> Signed-off-by: Luis Chamberlain <mcgrof@kernel.org>
Diffstat (limited to 'kernel/module')
-rw-r--r--kernel/module/kallsyms.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/module/kallsyms.c b/kernel/module/kallsyms.c
index 8e89f459ffdd..3320586584f1 100644
--- a/kernel/module/kallsyms.c
+++ b/kernel/module/kallsyms.c
@@ -503,8 +503,7 @@ unsigned long module_kallsyms_lookup_name(const char *name)
}
int module_kallsyms_on_each_symbol(const char *modname,
- int (*fn)(void *, const char *,
- struct module *, unsigned long),
+ int (*fn)(void *, const char *, unsigned long),
void *data)
{
struct module *mod;
@@ -533,7 +532,7 @@ int module_kallsyms_on_each_symbol(const char *modname,
continue;
ret = fn(data, kallsyms_symbol_name(kallsyms, i),
- mod, kallsyms_symbol_value(sym));
+ kallsyms_symbol_value(sym));
if (ret != 0)
goto out;
}