From: Mark Brown Date: Sun, 27 Jul 2014 16:57:04 +0000 (+0100) Subject: irqchip: gic-v3: Only define gic_peek_irq() when building SMP X-Git-Tag: fixes-for-v3.18-merge-window~126^2^2~5 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ddc86821ee2ce3367fdb116e7334751087f78c56;p=pandora-kernel.git irqchip: gic-v3: Only define gic_peek_irq() when building SMP 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 Acked-by: Marc Zyngier Link: https://lkml.kernel.org/r/1406480224-24628-1-git-send-email-broonie@kernel.org Signed-off-by: Jason Cooper --- Reading git-diff-tree failed