Skip to content

Commit 1357d2a

Browse files
Wei YongjunMarc Zyngier
authored andcommitted
irqchip/apple-aic: Make symbol 'use_fast_ipi' static
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: 2cf6821 ("irqchip/apple-aic: Add Fast IPI support") Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com> Reviewed-by: Hector Martin <marcan@marcan.st> Signed-off-by: Marc Zyngier <maz@kernel.org> Link: https://lore.kernel.org/r/20220618072824.562350-1-weiyongjun1@huawei.com
1 parent fd31000 commit 1357d2a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-apple-aic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@
228228
#define AIC_TMR_EL02_PHYS AIC_TMR_GUEST_PHYS
229229
#define AIC_TMR_EL02_VIRT AIC_TMR_GUEST_VIRT
230230

231-
DEFINE_STATIC_KEY_TRUE(use_fast_ipi);
231+
static DEFINE_STATIC_KEY_TRUE(use_fast_ipi);
232232

233233
struct aic_info {
234234
int version;

0 commit comments

Comments
 (0)