diff options
author | Li kunyu <kunyu@nfschina.com> | 2022-05-18 10:36:40 +0800 |
---|---|---|
committer | Steven Rostedt (Google) <rostedt@goodmis.org> | 2022-05-26 21:13:00 -0400 |
commit | 3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea (patch) | |
tree | 426e43bc9232f9e582087ed9b7e9f644c5459030 /arch/arm | |
parent | 2decd16f47e3df3234b5486fe89a9aa5a1102af1 (diff) | |
download | linux-riscv-3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea.tar.gz linux-riscv-3a2bfec0b02f2226ff3376a5d2ff604d799bd7ea.tar.bz2 linux-riscv-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/arm')
-rw-r--r-- | arch/arm/kernel/ftrace.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/arch/arm/kernel/ftrace.c b/arch/arm/kernel/ftrace.c index 83cc068586bc..a0b6d1e3812f 100644 --- a/arch/arm/kernel/ftrace.c +++ b/arch/arm/kernel/ftrace.c @@ -79,16 +79,14 @@ static unsigned long __ref adjust_address(struct dyn_ftrace *rec, return (unsigned long)&ftrace_regs_caller_from_init; } -int ftrace_arch_code_modify_prepare(void) +void ftrace_arch_code_modify_prepare(void) { - return 0; } -int ftrace_arch_code_modify_post_process(void) +void ftrace_arch_code_modify_post_process(void) { /* Make sure any TLB misses during machine stop are cleared. */ flush_tlb_all(); - return 0; } static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr, |