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
Showing the changes to include (1 of 6 files). Show all
Unified · Split
| @@ -449,8 +449,8 @@ static inline void stack_tracer_enable(void) { } · 448 unmodified lines | |||
| 449 | 449 | ||
| 450 | #ifdef CONFIG_DYNAMIC_FTRACE | 450 | #ifdef CONFIG_DYNAMIC_FTRACE |
| 451 | 451 | ||
| 452 | int ftrace_arch_code_modify_prepare(void); | 452 | void ftrace_arch_code_modify_prepare(void); |
| 453 | int ftrace_arch_code_modify_post_process(void); | 453 | void ftrace_arch_code_modify_post_process(void); |
| 454 | 454 | ||
| 455 | enum ftrace_bug_type { | 455 | enum ftrace_bug_type { |
| 456 | FTRACE_BUG_UNKNOWN, | 456 | FTRACE_BUG_UNKNOWN, |