bug: CONFIG_SCHED_MC_PRIO has undeclared dependency on CONFIG_DEBUG_FS
From: Andreas Kinzler
Date: Tue Oct 07 2025 - 15:28:35 EST
please see https://bugzilla.kernel.org/show_bug.cgi?id=220638
https://elixir.bootlin.com/linux/v6.17.1/source/arch/x86/Kconfig#L1057 does not declare a dependency on CONFIG_DEBUG_FS. In fact CONFIG_SCHED_MC_PRIO requires CONFIG_DEBUG_FS because the function sched_set_itmt_support (https://elixir.bootlin.com/linux/v6.17.1/source/arch/x86/kernel/itmt.c#L108) creates debug fs entries and fails if CONFIG_DEBUG_FS is not set.
I found this bug because with my custom kernel CONFIG_SCHED_MC_PRIO functionality did not work because I did not enable CONFIG_DEBUG_FS. After enabling CONFIG_DEBUG_FS CONFIG_SCHED_MC_PRIO also worked.