diff options
| author | Catalin Marinas <catalin.marinas@arm.com> | 2005-09-30 11:07:05 -0400 |
|---|---|---|
| committer | Russell King <rmk+kernel@arm.linux.org.uk> | 2005-09-30 11:07:05 -0400 |
| commit | a06f5466c4576dcbf838a50a87903b0082774da7 (patch) | |
| tree | d068e0f228e9edac423dcf4a5b8e3676e6d99893 | |
| parent | 481467d6fa4489aa42321a067e78bad26349488f (diff) | |
[ARM] 2942/1: Fix the warning in arch/arm/common/gic.c
Patch from Catalin Marinas
The warning is caused by the gic_set_cpu() function being defined but not
used if CONFIG_SMP is not defined.
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
| -rw-r--r-- | arch/arm/common/gic.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/common/gic.c b/arch/arm/common/gic.c index d74990717559..c02dc8116a18 100644 --- a/arch/arm/common/gic.c +++ b/arch/arm/common/gic.c | |||
| @@ -68,6 +68,7 @@ static void gic_unmask_irq(unsigned int irq) | |||
| 68 | writel(mask, gic_dist_base + GIC_DIST_ENABLE_SET + (irq / 32) * 4); | 68 | writel(mask, gic_dist_base + GIC_DIST_ENABLE_SET + (irq / 32) * 4); |
| 69 | } | 69 | } |
| 70 | 70 | ||
| 71 | #ifdef CONFIG_SMP | ||
| 71 | static void gic_set_cpu(struct irqdesc *desc, unsigned int irq, unsigned int cpu) | 72 | static void gic_set_cpu(struct irqdesc *desc, unsigned int irq, unsigned int cpu) |
| 72 | { | 73 | { |
| 73 | void __iomem *reg = gic_dist_base + GIC_DIST_TARGET + (irq & ~3); | 74 | void __iomem *reg = gic_dist_base + GIC_DIST_TARGET + (irq & ~3); |
| @@ -78,6 +79,7 @@ static void gic_set_cpu(struct irqdesc *desc, unsigned int irq, unsigned int cpu | |||
| 78 | val |= 1 << (cpu + shift); | 79 | val |= 1 << (cpu + shift); |
| 79 | writel(val, reg); | 80 | writel(val, reg); |
| 80 | } | 81 | } |
| 82 | #endif | ||
| 81 | 83 | ||
| 82 | static struct irqchip gic_chip = { | 84 | static struct irqchip gic_chip = { |
| 83 | .ack = gic_ack_irq, | 85 | .ack = gic_ack_irq, |
