[PATCH] tracing: 'select' GENERIC_TRACER, not 'depends'

From: Brian Norris

Date: Mon Nov 16 2026 - 17:47:26 EST


GENERIC_TRACER is not a user-selectable symbol, so it's impossible to
enable FTRACE_STARTUP_TEST unless one also enables some other symbol
that 'selects' GENERIC_TRACER for us.

This very file also suggests:

All tracer options should select GENERIC_TRACER

So, use 'select', not 'depends on'.

Fixes: 60a11774b38f ("ftrace: add self-tests")
Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>
---

kernel/trace/Kconfig | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig
index 35d043b19332..8084d46ef2a0 100644
--- a/kernel/trace/Kconfig
+++ b/kernel/trace/Kconfig
@@ -1135,7 +1135,7 @@ config FTRACE_SELFTEST

config FTRACE_STARTUP_TEST
bool "Perform a startup test on ftrace"
- depends on GENERIC_TRACER
+ select GENERIC_TRACER
select FTRACE_SELFTEST
help
This option performs a series of startup tests on ftrace. On bootup
--
2.56.1.703.gf848ed807c-goog