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

Jason Cooper jason at lakedaemon.net
Sun Aug 17 09:57:36 PDT 2014


Mark,

On Sun, Jul 27, 2014 at 05:57:04PM +0100, 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>
> ---
>  drivers/irqchip/irq-gic-v3.c | 26 +++++++++++++-------------
>  1 file changed, 13 insertions(+), 13 deletions(-)

Applied to irqchip/urgent with Mark's Ack.

thx,

Jason.



More information about the linux-arm-kernel mailing list