]> Git Repo - J-linux.git/commitdiff
cpuidle: add ARCH_SUSPEND_POSSIBLE dependencies
authorArnd Bergmann <[email protected]>
Mon, 6 Feb 2023 19:33:06 +0000 (20:33 +0100)
committerRafael J. Wysocki <[email protected]>
Thu, 9 Feb 2023 19:50:39 +0000 (20:50 +0100)
Some ARMv4 processors don't support suspend, which leads
to a build failure with the tegra and qualcomm cpuidle driver:

WARNING: unmet direct dependencies detected for ARM_CPU_SUSPEND
  Depends on [n]: ARCH_SUSPEND_POSSIBLE [=n]
  Selected by [y]:
  - ARM_TEGRA_CPUIDLE [=y] && CPU_IDLE [=y] && (ARM [=y] || ARM64) && (ARCH_TEGRA [=n] || COMPILE_TEST [=y]) && !ARM64 && MMU [=y]

arch/arm/kernel/sleep.o: in function `__cpu_suspend':
(.text+0x68): undefined reference to `cpu_sa110_suspend_size'
(.text+0x68): undefined reference to `cpu_fa526_suspend_size'

Add an explicit dependency to make randconfig builds avoid
this combination.

Fixes: faae6c9f2e68 ("cpuidle: tegra: Enable compile testing")
Fixes: a871be6b8eee ("cpuidle: Convert Qualcomm SPM driver to a generic CPUidle driver")
Link: https://lore.kernel.org/all/[email protected]/
Cc: All applicable <[email protected]>
Reviewed-by: Dmitry Osipenko <[email protected]>
Signed-off-by: Arnd Bergmann <[email protected]>
Acked-by: Thierry Reding <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
drivers/cpuidle/Kconfig.arm

index 747aa537389b92751863dfd23ab026576905f7e3..f0714a32921e6889387a0b9b0471a0cc45bb9209 100644 (file)
@@ -102,6 +102,7 @@ config ARM_MVEBU_V7_CPUIDLE
 config ARM_TEGRA_CPUIDLE
        bool "CPU Idle Driver for NVIDIA Tegra SoCs"
        depends on (ARCH_TEGRA || COMPILE_TEST) && !ARM64 && MMU
+       depends on ARCH_SUSPEND_POSSIBLE
        select ARCH_NEEDS_CPU_IDLE_COUPLED if SMP
        select ARM_CPU_SUSPEND
        help
@@ -110,6 +111,7 @@ config ARM_TEGRA_CPUIDLE
 config ARM_QCOM_SPM_CPUIDLE
        bool "CPU Idle Driver for Qualcomm Subsystem Power Manager (SPM)"
        depends on (ARCH_QCOM || COMPILE_TEST) && !ARM64 && MMU
+       depends on ARCH_SUSPEND_POSSIBLE
        select ARM_CPU_SUSPEND
        select CPU_IDLE_MULTIPLE_DRIVERS
        select DT_IDLE_STATES
This page took 0.050942 seconds and 4 git commands to generate.