Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752901AbbLIQxG (ORCPT ); Wed, 9 Dec 2015 11:53:06 -0500 Received: from mout.kundenserver.de ([212.227.126.187]:59605 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752523AbbLIQxD (ORCPT ); Wed, 9 Dec 2015 11:53:03 -0500 From: Arnd Bergmann To: robert.jarzmik@free.fr Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, Daniel Mack , Haojian Zhuang Subject: [PATCH] ARM: pxa: mark raumfeld init functions as __maybe_unused Date: Wed, 09 Dec 2015 17:52:33 +0100 Message-ID: <2245032.bpQt17WIoe@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" X-Provags-ID: V03:K0:54xTmIWL78SaaPiitzxEEu9mynije/IGQOp0+JkQRbppkE4W4uS S6lCwokl9ZQfUGLCB1yzLat51+PFEim+Zr+YJTSsoFVoRUTUPjtmk/Df5siSNVPryUql3uq ea9WkatEQ3S0jUsEbN+sAdaCxZr9JHgNTGCK3ra5Qt+UrM3tGr26ShJf9TbLNwe7FsRQBb6 iAJnFecTxydTkbUVEYMIA== X-UI-Out-Filterresults: notjunk:1;V01:K0:GKK3109KTvo=:ifsCxw1MGnRqWbNPZdZ1y7 JJCtIIWrku/5Cd/mP4VAfqNgkZwK8u+CZmp7RozdohrobWRBlp0KckGsh5q4WLTsI4GZnG2G+ e+0wkaY1ZGBIxDap5S9C28wyHD4eFJN6iF+5rBQzmGNDym0LhhO58fE8O/BG/1LgNE3TjkT2s D/8lsllwqy5uWaJ4nISBLsDM9fxEmjtGvfgksNpAQ/vqJ01tAbgLTQO0Lx3H7l/5VUvgFbae6 /qAAnYzs6635CLOOUi61EZxqp0LEVtZyklei6PvuasYuu95kRSYQdohzIJLskkDlzjAlxTNFR BWP7BLsdPT5iZpvOKtq3CIDUnBQauftMIwbDD462E5s0w5qXcVrb/MEJcJYO/pz1LeFYP9zVT UQZki8FKvYhrKEPFNW3IVuPBnssoG3VJAEyfaLkhyPIufvEqcmeR6cp/hYgRZIMyPlEI3FTWz 0Zu87pr1/l3V2ylWMTl7CCGL1ZeMkpMXZmvJiHFAi9+WzjBurRaESdsLy51wugykjmCNMmBDD 50Zb15DsSoi6Ea6ksXegKdcryB9G5m5WqvSEfBnd6w+3/IaWet4RBbRly+MZOeAKlsi0StA9k /MRhFjALQa3m7MM2IILPeOD3Ce/8Pk5omNrw6qC2Cf4knFHIlCD9NtT/pRRPptmVFEFoejnBy mrX8S0WmNb/KDAh0Fr8J2gZ0iZVqf0ZEmR4mGxloOFCiXh7PhOVuraC9k+atiVdWqq6VKP3dc tBaS0ZYVL9D0CeYR Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1893 Lines: 48 The raumfeld.c file contains three similar machine definitions, each with their own init function. If one or more of them are disabled, we get compile-time warnings: arm/mach-pxa/raumfeld.c:1070:123: warning: 'raumfeld_connector_init' defined but not used [-Wunused-function] arm/mach-pxa/raumfeld.c:1082:123: warning: 'raumfeld_speaker_init' defined but not used [-Wunused-function] This marks the functions as __maybe_unused to avoid the warnings. Signed-off-by: Arnd Bergmann diff --git a/arch/arm/mach-pxa/raumfeld.c b/arch/arm/mach-pxa/raumfeld.c index 0f67d94be297..8347d87a713d 100644 --- a/arch/arm/mach-pxa/raumfeld.c +++ b/arch/arm/mach-pxa/raumfeld.c @@ -1046,7 +1046,7 @@ static void __init raumfeld_common_init(void) i2c_register_board_info(1, &raumfeld_pwri2c_board_info, 1); } -static void __init raumfeld_controller_init(void) +static void __init __maybe_unused raumfeld_controller_init(void) { int ret; @@ -1067,7 +1067,7 @@ static void __init raumfeld_controller_init(void) raumfeld_w1_init(); } -static void __init raumfeld_connector_init(void) +static void __init __maybe_unused raumfeld_connector_init(void) { pxa3xx_mfp_config(ARRAY_AND_SIZE(raumfeld_connector_pin_config)); spi_register_board_info(ARRAY_AND_SIZE(connector_spi_devices)); @@ -1079,7 +1079,7 @@ static void __init raumfeld_connector_init(void) raumfeld_common_init(); } -static void __init raumfeld_speaker_init(void) +static void __init __maybe_unused raumfeld_speaker_init(void) { pxa3xx_mfp_config(ARRAY_AND_SIZE(raumfeld_speaker_pin_config)); spi_register_board_info(ARRAY_AND_SIZE(speaker_spi_devices)); -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/