ftrace: Cleanup ftrace_dyn_arch_init()
authorWeizhao Ouyang <o451686892@gmail.com>
Thu, 9 Sep 2021 09:02:16 +0000 (17:02 +0800)
committerSteven Rostedt (VMware) <rostedt@goodmis.org>
Fri, 8 Oct 2021 23:41:39 +0000 (19:41 -0400)
commit6644c654ea70e0d8b8d5111e1272f8f29df00f21
tree03020f0fc52e7cf54561dbd8de4ce737c955cc5a
parent21ccc9cd72116289469e5519b6159c675a2fa58f
ftrace: Cleanup ftrace_dyn_arch_init()

Most of ARCHs use empty ftrace_dyn_arch_init(), introduce a weak common
ftrace_dyn_arch_init() to cleanup them.

Link: https://lkml.kernel.org/r/20210909090216.1955240-1-o451686892@gmail.com
Acked-by: Heiko Carstens <hca@linux.ibm.com> (s390)
Acked-by: Helge Deller <deller@gmx.de> (parisc)
Signed-off-by: Weizhao Ouyang <o451686892@gmail.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
13 files changed:
arch/arm/kernel/ftrace.c
arch/arm64/kernel/ftrace.c
arch/csky/kernel/ftrace.c
arch/ia64/kernel/ftrace.c
arch/microblaze/kernel/ftrace.c
arch/nds32/kernel/ftrace.c
arch/parisc/kernel/ftrace.c
arch/riscv/kernel/ftrace.c
arch/s390/kernel/ftrace.c
arch/sh/kernel/ftrace.c
arch/sparc/kernel/ftrace.c
arch/x86/kernel/ftrace.c
kernel/trace/ftrace.c