Skip to contentSkip to conversation

platform profile: Restrict the core prompt to COMPILE_TEST

PATCH Superseded Daniel Lezcano 4 participants 4 messages Nov 18

lore
Share & tools
lore
#0 lore raw

PATCH 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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 18 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 line 6

Quoted 7 lines
drivers/platform/Kconfig +1 -1
@@ -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
Reviewed-by on v1 1/1
#2 lore raw
In reply to Daniel Lezcano
Quoted 27 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 +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

Looks good to me

Mark

#3 lore raw
In reply to Daniel Lezcano
Quoted 19 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
--

No CC to linux-acpi.