[PATCH] irqchip: gic-v3: Only define gic_peek_irq() when building SMP

Marc Zyngier marc.zyngier at arm.com
Mon Jul 28 09:01:13 PDT 2014

On 27/07/14 17:57, Mark Brown wrote:
> From: Mark Brown <broonie at linaro.org>
> If building with CONFIG_SMP disbled (for example, with allnoconfig) then
> GCC complains that the static function gic_peek_irq() is defined but not
> used since the only reference is in the SMP initialisation code. Fix this
> by moving the function definition inside the ifdef.
> Signed-off-by: Mark Brown <broonie at linaro.org>

Looks sane to me.

Acked-by: Marc Zyngier <marc.zyngier at arm.com>

Jazz is not dead. It just smells funny...

More information about the linux-arm-kernel mailing list