Received: from eggs.gnu.org ([208.118.235.92]:54608) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFSBD-0006cD-AG for qemu-devel@nongnu.org; Wed, 04 Apr 2012 11:31:35 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SFSB9-0005CG-MG for qemu-devel@nongnu.org; Wed, 04 Apr 2012 11:31:26 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:39290) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SFSB9-00059h-EH for qemu-devel@nongnu.org; Wed, 04 Apr 2012 11:31:23 -0400 From: Peter Maydell Date: Wed, 4 Apr 2012 16:31:01 +0100 Message-Id: <1333553462-12633-13-git-send-email-peter.maydell@linaro.org> In-Reply-To: <1333553462-12633-1-git-send-email-peter.maydell@linaro.org> References: <1333553462-12633-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH 12/13] hw/arm_gic.c: gic_set_pending_private() is NVIC only List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paul Brook , Evgeny Voevodin , patches@linaro.org The function gic_set_pending_private() is now used by the NVIC only (for the GIC we now set PPI interrupts via gpio lines and gic_set_irq()). So make it #ifdef NVIC and remove the 'attribute unused' annotation. Signed-off-by: Peter Maydell --- hw/arm_gic.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/hw/arm_gic.c b/hw/arm_gic.c index a9da88a..f395e4b 100644 --- a/hw/arm_gic.c +++ b/hw/arm_gic.c @@ -185,8 +185,8 @@ static void gic_update(gic_state *s) } } -static void __attribute__((unused)) -gic_set_pending_private(gic_state *s, int cpu, int irq) +#ifdef NVIC +static void gic_set_pending_private(gic_state *s, int cpu, int irq) { int cm = 1 << cpu; @@ -197,6 +197,7 @@ gic_set_pending_private(gic_state *s, int cpu, int irq) GIC_SET_PENDING(irq, cm); gic_update(s); } +#endif /* Process a change in an external IRQ input. */ static void gic_set_irq(void *opaque, int irq, int level) -- 1.7.1