diff options
author | Zhen Lei <thunder.leizhen@huawei.com> | 2023-03-08 15:38:46 +0800 |
---|---|---|
committer | Luis Chamberlain <mcgrof@kernel.org> | 2023-03-19 13:27:19 -0700 |
commit | 3703bd54cd37e7875f51ece8df8c85c184e40bba (patch) | |
tree | f47e4a4efc30f913dca20e23ff95323b2e0a1463 /kernel/trace/ftrace.c | |
parent | 7ce93729091dff24e6a1c3578b58b36f4b1cf10a (diff) | |
download | linux-stable-3703bd54cd37e7875f51ece8df8c85c184e40bba.tar.gz linux-stable-3703bd54cd37e7875f51ece8df8c85c184e40bba.tar.bz2 linux-stable-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/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 29baa97d0d53..76caca8f496a 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -8391,8 +8391,7 @@ struct kallsyms_data { * and returns 1 in case we resolved all the requested symbols, * 0 otherwise. */ -static int kallsyms_callback(void *data, const char *name, - struct module *mod, unsigned long addr) +static int kallsyms_callback(void *data, const char *name, unsigned long addr) { struct kallsyms_data *args = data; const char **sym; |