Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tracing: Simplify the Kconfig dependency of FTRACE

The entire FTRACE block is surrounded by 'if TRACING_SUPPORT' ...
'endif'.

Using 'depends on' is a simpler way to guard FTRACE.

Link: https://lkml.kernel.org/r/20210731052233.4703-1-masahiroy@kernel.org

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>

authored by

Masahiro Yamada and committed by
Steven Rostedt (VMware)
de32951b ed2cf907

+1 -5
+1 -5
kernel/trace/Kconfig
··· 135 135 depends on STACKTRACE_SUPPORT 136 136 default y 137 137 138 - if TRACING_SUPPORT 139 - 140 138 menuconfig FTRACE 141 139 bool "Tracers" 140 + depends on TRACING_SUPPORT 142 141 default y if DEBUG_KERNEL 143 142 help 144 143 Enable the kernel tracing infrastructure. ··· 1036 1037 If unsure, say N. 1037 1038 1038 1039 endif # FTRACE 1039 - 1040 - endif # TRACING_SUPPORT 1041 -