From patchwork Tue Feb 23 14:06:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102700 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1849612lbl; Tue, 23 Feb 2016 06:07:34 -0800 (PST) X-Received: by 10.98.8.200 with SMTP id 69mr47074036pfi.39.1456236454609; Tue, 23 Feb 2016 06:07:34 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b19si47600423pfd.242.2016.02.23.06.07.34; Tue, 23 Feb 2016 06:07:34 -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 S1752460AbcBWOHc (ORCPT + 30 others); Tue, 23 Feb 2016 09:07:32 -0500 Received: from mout.kundenserver.de ([212.227.126.134]:62408 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752131AbcBWOHa (ORCPT ); Tue, 23 Feb 2016 09:07:30 -0500 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue001) with ESMTPA (Nemesis) id 0Ma9xX-1aE4ru0699-00LoiI; Tue, 23 Feb 2016 15:06:57 +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 1/3] ARM: orion: only select I2C_BOARDINFO when using I2C Date: Tue, 23 Feb 2016 15:06:37 +0100 Message-Id: <1456236403-115511-2-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:biJXiieOG7r71R8bVkS0s3G3E6OiPqGRFG56bvwhkFfE8z1YLAi heGfCKQ/tZL/zIFqmlvh01AofQ/iq+0a117Rzxuw3eiAXdfk1uqTouYGJjvUrfIKE13GRqN jNoyCKx0wuQ+SAbEa5H3fmAirxyrybqT1U75bdMFpNhfZDjX/qc+UM7MgY60MZNLgBWY5p+ +0i2pXT15/NMC2qQUiNxw== X-UI-Out-Filterresults: notjunk:1; V01:K0:YIcxNnzAnfg=:UnkHe9LCryidix1aIFSXKX g6DdFhDMWObDJfNCj+3jqgSgxyOKN4TyBUF1l1GFXAWWeb8XLHo+sVt63gB9TlOk9rHt6zuNm PktJQRs86LkzjkJsu+kDWdWkfF0BbzzJIvf8YvaGusiPmcmNeQKtExUPQEDvKcqhY2mS5bbqm Kx6W0YZ8swCfPvgE2hOX4WSVCLDoi6QXp+WJphMWQJa9O3gaRNgI3RmhlVuTOZ7lVDT8dmOX2 giGp/T5FTupx6MihdXgEQ9U338C87EXx8YmZnpKKpB7YxDfI25aqSUsvksUVw378hyrU4OKNW kK1Ryh9dLkzoqfMlp8GpyELejfOCuvsSlSK7R67v3hWRurigbTIbn9oymQBMvDi/7LgjS9U3W znnSoyIJw3aYMDeYbELj5dPENvSRK1x/jLYcI/VFsftAFlK7FdBS5v/aBLtynzqoyCa4XMXN4 xLOgQ3JfBdbOiUUoT6YoK8Wh59/zkpR82pTRYWcZJajIwwjqneW9jMx1JRC5Nk9z4XLRmkw2o zWMFH7wbT0knXfOhDx5B036rKw+6iSboD5o9YlfTm2FHFkJvjccozlwZ4hv71WBEGjUHN3MuZ GUKwdVAkqRuN8w1b5iTACo06dKpEAJJLYxi/WpLbz3/62KSXnYxNOSw9XByN2lx1ePj6x8lE9 T41BEb6T1cijPdgfXB0xAC2mDiCAluiXqjOGAORcXvZZkimyRhDJaw2ekNUWGKdSMpFs= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org If we select I2C_BOARDINFO and I2C is disabled, we get a harmless Kconfig warning: warning: (MACH_DOVE_DB && MACH_DB88F5281 && MACH_RD88F5182 && MACH_RD88F5182_DT && MACH_KUROBOX_PRO && MACH_DNS323 && MACH_LINKSTATION_PRO && MACH_LINKSTATION_LSCHL && MACH_LINKSTATION_LS_HGL && MACH_NET2BIG) selects I2C_BOARDINFO which has unmet direct dependencies (I2C) Making the select itself conditional avoids the warning and makes the kernel slightly smaller as the compiler will be able to drop the unused board info. Signed-off-by: Arnd Bergmann --- arch/arm/mach-dove/Kconfig | 2 +- arch/arm/mach-orion5x/Kconfig | 18 +++++++++--------- 2 files changed, 10 insertions(+), 10 deletions(-) -- 2.7.0 diff --git a/arch/arm/mach-dove/Kconfig b/arch/arm/mach-dove/Kconfig index 0fd506125cde..5cc9f7450197 100644 --- a/arch/arm/mach-dove/Kconfig +++ b/arch/arm/mach-dove/Kconfig @@ -18,7 +18,7 @@ config DOVE_LEGACY config MACH_DOVE_DB bool "Marvell DB-MV88AP510 Development Board" select DOVE_LEGACY - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Marvell DB-MV88AP510 Development Board. diff --git a/arch/arm/mach-orion5x/Kconfig b/arch/arm/mach-orion5x/Kconfig index 4c0acd844429..a9ae143703f8 100644 --- a/arch/arm/mach-orion5x/Kconfig +++ b/arch/arm/mach-orion5x/Kconfig @@ -28,14 +28,14 @@ config ARCH_ORION5X_DT config MACH_DB88F5281 bool "Marvell Orion-2 Development Board" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Marvell Orion-2 (88F5281) Development Board config MACH_RD88F5182 bool "Marvell Orion-NAS Reference Design" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Marvell Orion-NAS (88F5182) RD2 @@ -43,14 +43,14 @@ config MACH_RD88F5182 config MACH_RD88F5182_DT bool "Marvell Orion-NAS Reference Design (Flattened Device Tree)" select ARCH_ORION5X_DT - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Marvell Orion-NAS (88F5182) RD2, Flattened Device Tree. config MACH_KUROBOX_PRO bool "KuroBox Pro" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the KuroBox Pro platform. @@ -58,7 +58,7 @@ config MACH_KUROBOX_PRO config MACH_DNS323 bool "D-Link DNS-323" select GENERIC_NET_UTILS - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the D-Link DNS-323 platform. @@ -78,7 +78,7 @@ config MACH_TERASTATION_PRO2 config MACH_LINKSTATION_PRO bool "Buffalo Linkstation Pro/Live" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Buffalo Linkstation Pro/Live platform. Both v1 and @@ -86,7 +86,7 @@ config MACH_LINKSTATION_PRO config MACH_LINKSTATION_LSCHL bool "Buffalo Linkstation Live v3 (LS-CHL)" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Buffalo Linkstation Live v3 (LS-CHL) platform. @@ -100,7 +100,7 @@ config MACH_LINKSTATION_MINI config MACH_LINKSTATION_LS_HGL bool "Buffalo Linkstation LS-HGL" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the Buffalo Linkstation LS-HGL platform. @@ -139,7 +139,7 @@ config MACH_D2NET_DT config MACH_NET2BIG bool "LaCie 2Big Network" - select I2C_BOARDINFO + select I2C_BOARDINFO if I2C help Say 'Y' here if you want your kernel to support the LaCie 2Big Network NAS. From patchwork Tue Feb 23 14:06:38 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102699 Delivered-To: patch@linaro.org Received: by 10.112.43.199 with SMTP id y7csp1849699lbl; Tue, 23 Feb 2016 06:07:44 -0800 (PST) X-Received: by 10.98.89.4 with SMTP id n4mr45280570pfb.81.1456236464387; Tue, 23 Feb 2016 06:07:44 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x77si47597971pfa.33.2016.02.23.06.07.43; Tue, 23 Feb 2016 06:07:44 -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 S1752756AbcBWOHl (ORCPT + 30 others); Tue, 23 Feb 2016 09:07:41 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:57905 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752139AbcBWOHj (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 0LwRR9-1ZsCOO0Ytb-018Msk; Tue, 23 Feb 2016 15:07:03 +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 2/3] ARM: mv78xx0: avoid unused function warning Date: Tue, 23 Feb 2016 15:06:38 +0100 Message-Id: <1456236403-115511-3-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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kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mv78xx0 produces a harmless warning when CONFIG_CACHE_FEROCEON_L2 is disabled: arch/arm/mach-mv78xx0/common.c:385:19: warning: 'is_l2_writethrough' defined but not used [-Wunused-function] This avoids the warning by changing the #ifdef to an if(IS_ENABLED()) check with the same resulting object code. Signed-off-by: Arnd Bergmann --- arch/arm/mach-mv78xx0/common.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) -- 2.7.0 diff --git a/arch/arm/mach-mv78xx0/common.c b/arch/arm/mach-mv78xx0/common.c index a1a04df9c05c..99cc93900a24 100644 --- a/arch/arm/mach-mv78xx0/common.c +++ b/arch/arm/mach-mv78xx0/common.c @@ -405,9 +405,8 @@ void __init mv78xx0_init(void) printk("HCLK = %dMHz, ", (hclk + 499999) / 1000000); printk("TCLK = %dMHz\n", (get_tclk() + 499999) / 1000000); -#ifdef CONFIG_CACHE_FEROCEON_L2 - feroceon_l2_init(is_l2_writethrough()); -#endif + if (IS_ENABLED(CONFIG_CACHE_FEROCEON_L2)) + feroceon_l2_init(is_l2_writethrough()); /* Setup root of clk tree */ clk_init(); 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, };