]> Git Repo - linux.git/commitdiff
irqchip/apple-aic: Make symbol 'use_fast_ipi' static
authorWei Yongjun <[email protected]>
Sat, 18 Jun 2022 07:28:24 +0000 (07:28 +0000)
committerMarc Zyngier <[email protected]>
Fri, 1 Jul 2022 13:26:13 +0000 (14:26 +0100)
The sparse tool complains as follows:

drivers/irqchip/irq-apple-aic.c:231:1: warning:
 symbol 'use_fast_ipi' was not declared. Should it be static?

This symbol is not used outside of irq-apple-aic.c, so marks it static.

Fixes: 2cf68211664a ("irqchip/apple-aic: Add Fast IPI support")
Reported-by: Hulk Robot <[email protected]>
Signed-off-by: Wei Yongjun <[email protected]>
Reviewed-by: Hector Martin <[email protected]>
Signed-off-by: Marc Zyngier <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
drivers/irqchip/irq-apple-aic.c

index 5ac83185ff4794f0af825cdd4d96bcc624630b07..1c2813ad8bbe2cd73e79d8fd7f6230901fb51504 100644 (file)
 #define AIC_TMR_EL02_PHYS      AIC_TMR_GUEST_PHYS
 #define AIC_TMR_EL02_VIRT      AIC_TMR_GUEST_VIRT
 
-DEFINE_STATIC_KEY_TRUE(use_fast_ipi);
+static DEFINE_STATIC_KEY_TRUE(use_fast_ipi);
 
 struct aic_info {
        int version;
This page took 0.059225 seconds and 4 git commands to generate.