Skip to content

Commit 0804020

Browse files
committed
irqchip/gic-v3: Fix 'broken_rdists' unused warning when !SMP and !ACPI
Compiling the GICv3 driver on arm32 with CONFIG_SMP disabled (CONFIG_ACPI is not available) generates an unused variable warning for 'broken_rdists'. Add a __maybe_unused attribute to silence the compiler. Fixes: d633da5 ("irqchip/gic-v3: Add support for ACPI's disabled but 'online capable' CPUs") Cc: <[email protected]> # .x Acked-by: Marc Zyngier <[email protected]> Signed-off-by: Catalin Marinas <[email protected]>
1 parent 46800e3 commit 0804020

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/irqchip/irq-gic-v3.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545
#define GIC_IRQ_TYPE_PARTITION (GIC_IRQ_TYPE_LPI + 1)
4646

47-
static struct cpumask broken_rdists __read_mostly;
47+
static struct cpumask broken_rdists __read_mostly __maybe_unused;
4848

4949
struct redist_region {
5050
void __iomem *redist_base;

0 commit comments

Comments
 (0)