aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/acpi/cppc_acpi.c
diff options
context:
space:
mode:
authorHuacai Chen <[email protected]>2022-08-08 09:32:05 +0000
committerMarc Zyngier <[email protected]>2022-08-08 10:10:28 +0000
commitfda7409a8fcfa457814f8186f2861a9f00008e75 (patch)
tree03dd70d92970cceb1223838b19609894d88eecab /drivers/acpi/cppc_acpi.c
parentirqchip/loongson-eiointc: Fix a build warning (diff)
downloadkernel-fda7409a8fcfa457814f8186f2861a9f00008e75.tar.gz
kernel-fda7409a8fcfa457814f8186f2861a9f00008e75.zip
irqchip/loongson-pch-pic: Move find_pch_pic() into CONFIG_ACPI
MIPS doesn't declare find_pch_pic(), which makes a build warning: >> drivers/irqchip/irq-loongson-pch-pic.c:51:5: warning: no previous prototype for function 'find_pch_pic' [-Wmissing-prototypes] int find_pch_pic(u32 gsi) ^ drivers/irqchip/irq-loongson-pch-pic.c:51:1: note: declare 'static' if the function is not intended to be used outside of this translation unit int find_pch_pic(u32 gsi) ^ static 1 warning generated. Move find_pch_pic() into CONFIG_ACPI which only used by LoongArch to fix the warning. BTW, remove the duplicated declaration of find_pch_pic() in irq.h. Reported-by: kernel test robot <[email protected]> Signed-off-by: Huacai Chen <[email protected]> Signed-off-by: Marc Zyngier <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'drivers/acpi/cppc_acpi.c')
0 files changed, 0 insertions, 0 deletions