diff options
author | Arnd Bergmann <[email protected]> | 2023-05-16 18:06:34 +0200 |
---|---|---|
committer | Catalin Marinas <[email protected]> | 2023-05-25 17:44:02 +0100 |
commit | 68a879b55346588de936c99a04e665d9cdc326e6 (patch) | |
tree | 2db8c58702c3b798d6601ec0655887202d190b84 /lib/mpi/mpiutil.c | |
parent | 05d557a5cf59b08590cfc1bfc44bfdc0f9ac9681 (diff) |
arm64: cpuidle: fix #ifdef for acpi functions
The acpi_processor_ffh_lpi_* functions are defined whenever CONFIG_ACPI
is enabled, but only called and declared when CONFIG_ACPI_PROCESSOR_IDLE
is also enabled. Without that, a W=1 build triggers missing-prototope
warnings, so the #ifdef needs to be adapted:
arch/arm64/kernel/cpuidle.c:60:5: error: no previous prototype for 'acpi_processor_ffh_lpi_probe' [-Werror=missing-prototypes]
arch/arm64/kernel/cpuidle.c:65:15: error: no previous prototype for 'acpi_processor_ffh_lpi_enter' [-Werror=missing-prototypes]
Signed-off-by: Arnd Bergmann <[email protected]>
Reviewed-by: Kees Cook <[email protected]>
Acked-by: Ard Biesheuvel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Catalin Marinas <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions