diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-05-18 04:36:40 +0200 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-05-27 03:13:00 +0200 |
commit | 3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea (patch) | |
tree | 426e43bc9232f9e582087ed9b7e9f644c5459030 /arch/s390/kernel/ftrace.c | |
parent | tracing: Cleanup code by removing init "char *name" (diff) | |
download | linux-3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea.tar.xz linux-3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea.zip |
ftrace: Remove return value of ftrace_arch_modify_*()
All instances of the function ftrace_arch_modify_prepare() and
ftrace_arch_modify_post_process() return zero. There's no point in
checking their return value. Just have them be void functions.
Link: https://lkml.kernel.org/r/20220518023639.4065-1-kunyu@nfschina.com
Signed-off-by: Li kunyu <kunyu@nfschina.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
Diffstat (limited to 'arch/s390/kernel/ftrace.c')
-rw-r--r-- | arch/s390/kernel/ftrace.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/s390/kernel/ftrace.c b/arch/s390/kernel/ftrace.c index 1852d46babb1..416b5a94353d 100644 --- a/arch/s390/kernel/ftrace.c +++ b/arch/s390/kernel/ftrace.c @@ -225,14 +225,13 @@ void arch_ftrace_update_code(int command) ftrace_modify_all_code(command); } -int ftrace_arch_code_modify_post_process(void) +void ftrace_arch_code_modify_post_process(void) { /* * Flush any pre-fetched instructions on all * CPUs to make the new code visible. */ text_poke_sync_lock(); - return 0; } #ifdef CONFIG_MODULES |