From patchwork Mon Jan 20 20:14:13 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnaud Ebalard X-Patchwork-Id: 3514401 Return-Path: X-Original-To: patchwork-linux-arm@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 264C1C02DC for ; Mon, 20 Jan 2014 20:15:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 3A95020142 for ; Mon, 20 Jan 2014 20:15:01 +0000 (UTC) Received: from casper.infradead.org (casper.infradead.org [85.118.1.10]) (using TLSv1.2 with cipher DHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id ED68E2013D for ; Mon, 20 Jan 2014 20:14:59 +0000 (UTC) Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5LFI-00035C-AQ; Mon, 20 Jan 2014 20:14:56 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5LFF-0002w6-QK; Mon, 20 Jan 2014 20:14:53 +0000 Received: from [2a01:e35:139b:9f90:221:70ff:fe55:8f78] (helo=smtp.natisbad.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W5LFB-0002vi-Nc for linux-arm-kernel@lists.infradead.org; Mon, 20 Jan 2014 20:14:50 +0000 Received: by smtp.natisbad.org (Postfix, from userid 5001) id 9B8ED2C0C3F; Mon, 20 Jan 2014 21:14:21 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1390248861; bh=P0bqUTzWrACEHDvj5PBud5pYsyqUGkMlGn434s996+o=; h=From:To:Cc:Subject:Date; b=Iua5eq0cD5g7qNDQYiekG8bl32RwcBXVWSlQ7lTR6v5d8RSAuZRCab3cWJdmKKvkp Rr5poK7U8aMImUpijo7MLZVE3BwE+g1KsX82qo1PybYgwpJxIi43ZmEgccCr1GBy7d Y1Z+OKtUcJ2ofUQe+jKk3ptJ7ik35feTD3MG4ink= X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-4.6 required=5.0 tests=BAYES_00,DKIM_SIGNED, RCVD_IN_DNSWL_MED,RP_MATCHES_RCVD,T_DKIM_INVALID,UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from small (localhost [127.0.0.1]) by smtp.natisbad.org (Postfix) with ESMTP id 985022C078C; Mon, 20 Jan 2014 21:14:14 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=natisbad.org; s=mail; t=1390248854; bh=P0bqUTzWrACEHDvj5PBud5pYsyqUGkMlGn434s996+o=; h=From:To:Cc:Subject:Date; b=0SIPARXW0G2E6gepXXtgvj4axBxqwNOh1wrqbeYoaqLbNCxMLyb4X/SvlRC3GwVid YRn68rOoFuv52QOTDfkjkOlXhi76CdzYkOeqmkACROBRmLs/bpjOP6nWuwydnlQS1e X59AOlcbOpKqiQa195+UtMW83ICQP5L2eXai0/3A= X-Hashcash: 1:20:140120:jason@lakedaemon.net::wzf+JyCzHcS9v191:00000000000000000000000000000000000000000C8wZ X-Hashcash: 1:20:140120:andrew@lunn.ch::xK/r6tUFlXtrEjUX:0001eDo X-Hashcash: 1:20:140120:gregory.clement@free-electrons.com::/NdvOjznUss4K6h2:0000000000000000000000000006VIS X-Hashcash: 1:20:140120:sebastian.hesselbarth@gmail.com::oFoMkmoG74cnlHrY:0000000000000000000000000000003nKq X-Hashcash: 1:20:140120:linux@arm.linux.org.uk::x0OGdmXAGoyRzACY:0000000000000000000000000000000000000007p6X X-Hashcash: 1:20:140120:linux-arm-kernel@lists.infradead.org::Q8kKnqqNwXIDpzqG:00000000000000000000000004IxI From: arno@natisbad.org (Arnaud Ebalard) To: Jason Cooper , Andrew Lunn , Gregory Clement , Sebastian Hesselbarth Subject: [PATCH] ARM: mvebu: fix compilation warning on Armada 370 (i.e. non-SMP) X-PGP-Key-URL: http://natisbad.org/arno@natisbad.org.asc X-Fingerprint: D3A5 B68A 839B 38A5 815A 781B B77C 0748 A7AE 341B Date: Mon, 20 Jan 2014 21:14:13 +0100 Message-ID: <87r48276ne.fsf@natisbad.org> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140120_151450_378976_21B6E03E X-CRM114-Status: GOOD ( 11.53 ) X-Spam-Score: -1.2 (-) Cc: Russell King , linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP The following appears during compilation for an Armada 370 target because 'irq_controller_lock' is used only when CONFIG_SMP is enabled: drivers/irqchip/irq-armada-370-xp.c:62:8: warning: 'irq_controller_lock' defined but not used [-Wunused-variable] Fix that warning by protecting declaration via an #ifdef. Signed-off-by: Arnaud Ebalard --- drivers/irqchip/irq-armada-370-xp.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/irqchip/irq-armada-370-xp.c b/drivers/irqchip/irq-armada-370-xp.c index 433cc8568dec..499c5070f841 100644 --- a/drivers/irqchip/irq-armada-370-xp.c +++ b/drivers/irqchip/irq-armada-370-xp.c @@ -59,7 +59,9 @@ #define PCI_MSI_DOORBELL_END (32) #define PCI_MSI_DOORBELL_MASK 0xFFFF0000 +#ifdef CONFIG_SMP static DEFINE_RAW_SPINLOCK(irq_controller_lock); +#endif static void __iomem *per_cpu_int_base; static void __iomem *main_int_base;