From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752968AbcBWOcm (ORCPT ); Tue, 23 Feb 2016 09:32:42 -0500 Received: from mout.kundenserver.de ([212.227.126.133]:56981 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750936AbcBWOcl (ORCPT ); Tue, 23 Feb 2016 09:32:41 -0500 From: Arnd Bergmann To: Barry Song Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH] ARM: sirf: mark sirfsoc_init_late as __maybe_unused Date: Tue, 23 Feb 2016 15:32:01 +0100 Message-Id: <1456237925-727550-1-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 X-Provags-ID: V03:K0:deYOFdGefovC/IwT2dqE1xXmVe0eLy4tplWNBDE3GcH5gfxLmKt yBNB5heZUXmPyxVP8HAK3UXld+MUEXDqwZ8uHTcj8Fz28BMDkMoLnVR7J5+ZEdR4Ka35KbT 3yGot5P/tgrAYA5o/JSUwA9mFe4g6x12BgY9JfP4brKCb+CS8sIeVKn0ZaJLGrT3Ehcp44o oCbw1DdOTsPchKpI+bK3A== X-UI-Out-Filterresults: notjunk:1;V01:K0:YDgj5KRN83c=:Uef6V8NFvJFnTwhbo1QuWR lZzsgPK5bQ1QAOF6DW+A9rSoKheL9kgbmx/f3DifoWVUQyP/+j8VtaFP03KZF7rjqH7OMyS4Z QvGvb5VEpTJYUcVC3UvrBty3j3GhGn8ZI8bemmRhKWnZNzVkdsy/1DXVn3xerFyp0YtKtU4TT iWLmrLpc6Snrt8jDXiqGUxLvweCPEY0LSzr5hIJR86+Z5o5QJcINWJPjzp3CRKClplyKw75Pm gYM49OGmGXigwvuw4rSb5om7myrSKr9v5qgBLbfjAuP89WgdNfOV1GWjBqSayuO+l2XHNRGnr uH1u1Vf7d2oi62MYYMaDrv85RvBqVyiptk6npYY2zgwrSvakTsAIyatAN9qkceiDHZJSGTnUo 6XLh/wLDDOSy1AvGZXY6YLPnXHbuI7EYJJVNrQq7bBJLaxRowDBg0W378LbesdotTPl9byXEp SNytX7YSHq/9ltDtumMnm0w0FwqJ10BLxyBrfMTvtnOVN2FxrEkToCrvQrbnMjn4rqABSqtHo 0WZQDlGBG6SL9VgHCzWjrnUSnrT3vf1EEGLpI/IBGBdtwb41LhgCLEfpQTZ0pPJ673RxFbID1 SjycnCDDDS7XC+OsSmT2RExM8A4drOXAeBpyffvz4C10jAQU1sFcEzo8gOPWVhbi/dNpGmWyp zmwd4OfXaWLiHsIPFGt++V2x2G21Gws9lQCAGHdAyO7uzC2vh4ODTK0Bii/c/n1rIrhs= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org sirfsoc_init_late is called by each of the three individual SoC definitions, but in a randconfig build, we can encounter a situation where they are all disabled: arch/arm/mach-prima2/common.c:18:123: warning: 'sirfsoc_init_late' defined but not used [-Wunused-function] While that is not a useful configuration, the warning also doesn't help, so this patch marks the function as __maybe_unused to let the compiler know it is there intentionally. Signed-off-by: Arnd Bergmann --- arch/arm/mach-prima2/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c index 8cadb302a7d2..ffe05c27087e 100644 --- a/arch/arm/mach-prima2/common.c +++ b/arch/arm/mach-prima2/common.c @@ -15,7 +15,7 @@ #include #include "common.h" -static void __init sirfsoc_init_late(void) +static void __init __maybe_unused sirfsoc_init_late(void) { sirfsoc_pm_init(); } -- 2.7.0 From mboxrd@z Thu Jan 1 00:00:00 1970 From: arnd@arndb.de (Arnd Bergmann) Date: Tue, 23 Feb 2016 15:32:01 +0100 Subject: [PATCH] ARM: sirf: mark sirfsoc_init_late as __maybe_unused Message-ID: <1456237925-727550-1-git-send-email-arnd@arndb.de> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org sirfsoc_init_late is called by each of the three individual SoC definitions, but in a randconfig build, we can encounter a situation where they are all disabled: arch/arm/mach-prima2/common.c:18:123: warning: 'sirfsoc_init_late' defined but not used [-Wunused-function] While that is not a useful configuration, the warning also doesn't help, so this patch marks the function as __maybe_unused to let the compiler know it is there intentionally. Signed-off-by: Arnd Bergmann --- arch/arm/mach-prima2/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-prima2/common.c b/arch/arm/mach-prima2/common.c index 8cadb302a7d2..ffe05c27087e 100644 --- a/arch/arm/mach-prima2/common.c +++ b/arch/arm/mach-prima2/common.c @@ -15,7 +15,7 @@ #include #include "common.h" -static void __init sirfsoc_init_late(void) +static void __init __maybe_unused sirfsoc_init_late(void) { sirfsoc_pm_init(); } -- 2.7.0