Skip to contentSkip to conversation

platform profile: Restrict the core prompt to COMPILE_TEST

PATCH RESEND Applied Daniel Lezcano 2 participants 2 messages Nov 18 – Nov 20

lore
Share & tools
lore
#0 lore raw

PATCH RESEND 1/1 platform profile: Restrict the core prompt to COMPILE_TEST

All platform profile providers select PLATFORM_PROFILE, so users do not need to enable the core explicitly.

Only show its prompt when COMPILE_TEST is enabled. This avoids exposing the option in normal configurations while allowing the architecture-independent core to be build-tested without a provider.

---
 drivers/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/Kconfig +1 -1
index 7270f24a3b6e..1cf87904afc3 100644
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PLATFORM_PROFILE
-	tristate "Platform profile support"
+	tristate "Platform profile support" if COMPILE_TEST
 	help
 	  Provide a common sysfs interface for selecting platform power,
 	  performance and cooling profiles. Platform-specific provider drivers
Signature · 1 line
2.43.0
#1 lore raw
Quoted 21 lines · Daniel Lezcano

All platform profile providers select PLATFORM_PROFILE, so users do not need to enable the core explicitly.

Only show its prompt when COMPILE_TEST is enabled. This avoids exposing the option in normal configurations while allowing the architecture-independent core to be build-tested without a provider.

---
 drivers/platform/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/platform/Kconfig +0 -0
index 7270f24a3b6e..1cf87904afc3 100644

drivers/platform/Kconfig

Quoted 8 lines
drivers/platform/Kconfig +1 -2
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PLATFORM_PROFILE
-       tristate "Platform profile support"
+       tristate "Platform profile support" if COMPILE_TEST
        help
          Provide a common sysfs interface for selecting platform power,
          performance and cooling profiles. Platform-specific provider drivers
--

Applied, thanks!