From patchwork Tue Feb 23 14:06:39 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102698 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1849755lbl; Tue, 23 Feb 2016 06:07:50 -0800 (PST) X-Received: by 10.98.80.80 with SMTP id e77mr46445842pfb.126.1456236470362; Tue, 23 Feb 2016 06:07:50 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id i77si47631460pfj.182.2016.02.23.06.07.49; Tue, 23 Feb 2016 06:07:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752916AbcBWOHm (ORCPT + 30 others); Tue, 23 Feb 2016 09:07:42 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:55468 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbcBWOHj (ORCPT ); Tue, 23 Feb 2016 09:07:39 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0LdQZe-1a8TFu1UkE-00ikK7; Tue, 23 Feb 2016 15:07:08 +0100 From: Arnd Bergmann To: Gregory Clement , Jason Cooper , Andrew Lunn , Sebastian Hesselbarth Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 3/3] ARM: mvebu: mark mvebu_hwcc_pci_nb as __maybe_unused Date: Tue, 23 Feb 2016 15:06:39 +0100 Message-Id: <1456236403-115511-4-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456236403-115511-1-git-send-email-arnd@arndb.de> References: <1456236403-115511-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:eNfDPBeqI7M9KjR9UVad+0BalXkyKsk4lXoAAq689zV5PvscNVY 1G9t7cRkCann6x2aiQW0JPZ7NpemRC7Zjh0QtgIIfXvSTGkjGanxty9ErlnhKv4bA8wXKq4 s1Uw5EXYU1xF6J7WTxvtdeJFxGjVi9qk2+71w4jqTUOIBZBJyhQ8LE2ap4y+Wh4/QrmhV6y D85NQfb13/XahO1APW4hw== X-UI-Out-Filterresults: notjunk:1; V01:K0:mQBjtq15PfE=:RG56lqQWY3YJalOhGBjyL7 fNzWTyPJ2M0kIjdj1ikNzCVO2UcPBErh9IYiZgiPasURdcnJOsQvHKRLWpZSQKrm2U8maZbeg 2hiPVUv+gmVNKsNop/pQxed6Myiu4D9jDfN8C4WOg/C/6coIU8QnfpYuU3O7zUaw9Xu5QeS8V DxTqBSoB2DlyPuQ+sN4LoDzLUnv971VR1EC6uokr8fFYzHldkeIxql3MG6ntMLGBYPkspkZZv VTMU+jHvm5IvZbNwcOwJ9ydGSVsFdx4iGzFvrHhjQ0GCoqKUXBbSmctMYPJO/vfzeBSDnfTPL MLrcquo957B0Wu7TltLaXGg2XuQnqI26jq1sYu1GapIw91RN3ufjw8XJFuzlTXrKujkXk1MU7 l+l1Ycx47opO+Qb+BKJl6ycY4h4doBm3C1pGhYJzLR1mFsPMGiDL59MfSF02errsH3XDSUUMd hM40TsFIVkWk9FGoY05x9l0xEmxGLy2f8zCDK4y0WCFspnZJThtN/4Q01wNaJxs68cmyo8fkU ExgCgpqpnDrn5C3K76mXmXhVbECVfp25slVpxUWmMSCVyKvmDEfhhb9EUhm/oxhpZYmoEAPYJ DGQBFSjTKr81zsjLg6OYutiw9y/0pHgOSXLYUKsytqWSKf12gnbM8Da24iOl11S1VC4+HtxxI L04fPj20qL1JFTTIFsh57Qf3AoBGdSzdftiMp39PzSBXhqD6rBdAZtBp/9psB92dudJo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The coherency notifier block is only used when CONFIG_PCI is enabled, otherwise we get a warning: arch/arm/mach-mvebu/coherency.c:110:30: warning: 'mvebu_hwcc_pci_nb' defined but not used [-Wunused-variable] There is no nice way to use an if(IS_ENABLED()) check here to let the compiler know that it might be used, so let's mark the structure as __maybe_unused. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mvebu/coherency.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 diff --git a/arch/arm/mach-mvebu/coherency.c b/arch/arm/mach-mvebu/coherency.c index 55348ee5a352..7e989d61159c 100644 --- a/arch/arm/mach-mvebu/coherency.c +++ b/arch/arm/mach-mvebu/coherency.c @@ -107,7 +107,7 @@ static struct notifier_block mvebu_hwcc_nb = { .notifier_call = mvebu_hwcc_notifier, }; -static struct notifier_block mvebu_hwcc_pci_nb = { +static struct notifier_block mvebu_hwcc_pci_nb __maybe_unused = { .notifier_call = mvebu_hwcc_notifier, };