History

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

Li kunyu committed 4 years ago

Commit 3a2bfec1 parent 2decd166 files · +13 −28Browse files

Showing the changes to include (1 of 6 files). Show all

Unified · Split

include/linux/ftrace.h+2−2
@@ -449,8 +449,8 @@ static inline void stack_tracer_enable(void) { } · 448 unmodified lines
449 449
450#ifdef CONFIG_DYNAMIC_FTRACE450#ifdef CONFIG_DYNAMIC_FTRACE
451 451
452int ftrace_arch_code_modify_prepare(void);452void ftrace_arch_code_modify_prepare(void);
453int ftrace_arch_code_modify_post_process(void);453void ftrace_arch_code_modify_post_process(void);
454 454
455enum ftrace_bug_type {455enum ftrace_bug_type {
456 FTRACE_BUG_UNKNOWN,456 FTRACE_BUG_UNKNOWN,