Message ID | 20170720155209.3250880-5-arnd@arndb.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org> Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 6662660392 for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Jul 2017 15:55:01 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 559162875E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Jul 2017 15:55:01 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 4A0C628767; Thu, 20 Jul 2017 15:55:01 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id D62EB2875E for <patchwork-linux-arm@patchwork.kernel.org>; Thu, 20 Jul 2017 15:55:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:References: In-Reply-To:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:List-Owner; bh=COVPAnPGTRigthTbikclEf5RyFxwL+DIy0/X1ZCpDW4=; b=Pwj2Scf3QPFwMsdEWkDp2WFuvW VLgVnR8g5+ox4xMAPRNS8XZ+edJEeU0pB0LWsRgHPrFFkn5N5yi4naPcLYTQQkxtI0996CZscRH46 M61LDP1N7kWoWYilA0AspgYkyUVykiCQr1Q3zj5bidulz+S1FOzgwFCTFLav+IIpGXlamzFzsujBV SemWoP3rmZ4k7VrgH40srIq8pmbIEsE1CiANbwW+Y4XCl5Wv8Lveuu0WzfWRAfHqT6zB7k0JJFmx5 N/hA6AtWHCzKmslt2MCgWuSbsUu2thYjGUjt4PSkjnITsTtJ7cYb/oVCO05hYWTvXuvQ4Dn2fRCRA FQSVMQKg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dYDmz-0001oc-E7; Thu, 20 Jul 2017 15:54:57 +0000 Received: from mout.kundenserver.de ([212.227.126.134]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dYDlp-0000d0-6N for linux-arm-kernel@lists.infradead.org; Thu, 20 Jul 2017 15:54:20 +0000 Received: from wuerfel.lan ([5.56.224.194]) by mrelayeu.kundenserver.de (mreue002 [212.227.15.129]) with ESMTPA (Nemesis) id 0MgkXH-1dE4BB12ox-00NyRw; Thu, 20 Jul 2017 17:53:22 +0200 From: Arnd Bergmann <arnd@arndb.de> To: Barry Song <baohua@kernel.org> Subject: [PATCH 08/12] ARM: sirf: mark sirfsoc_init_late as __maybe_unused Date: Thu, 20 Jul 2017 17:51:46 +0200 Message-Id: <20170720155209.3250880-5-arnd@arndb.de> X-Mailer: git-send-email 2.9.0 In-Reply-To: <20170720154616.3250481-1-arnd@arndb.de> References: <20170720154616.3250481-1-arnd@arndb.de> X-Provags-ID: V03:K0:AuzTKd8onbs2Z5/VaAPTLqEEAW9dUaZGz7HoMlnACigw7cvJqxG ksDfiQrE2iMi0QkeuNFht1kbSo94foyLD4NTrgT6bKGXZgGONsBYrflSxU14RaRj2TPr1VW ZUs2nbqd0IRLKDT/a7J2Bu5tGTw9/QXXRAVy86PohejW08pK1tH05w89yrv9a+tutuffnXQ wbzS5aLQi8AtWAPCtfEOA== X-UI-Out-Filterresults: notjunk:1; V01:K0:+kvi3nsk3js=:C4P4gIqiCmlYUdPIP8nxN8 zI8FwGa6xJU8HGT7NmMZY2xd9grBjNhTNyZwWvVjwlyZ6yBBCvdJ7b+90ONonnqGmjVzC3xNe UFaJ3DFuxRgOE9eWdCkjo2mPXeqWsMIRpUMOaigbqrsdpEkgBzpln9NRAyhgrRxOwL/SWy9M2 g99jm0RXVzJdgIPeLuG45at9y1rjIc0EK5vB5QRefLjtdF/WJ9CaaDFVkRXazZMtwHebvjQS8 uTN7mjJuW8qygsRq52K4fCy7u7rS8XCxJofRXTJgy3CAVT49b8Rnm2s1pozH/CPz6Y0pajumJ cjRs8eRafn0DQVv73UICQRS+h4avqziqcfnTKohYnUzQeFYfe+w5rzD9+DwRz2kfKxtcVINk8 mnQASB8kfRG8H8SjtSx5/h34LR3weYYE7CMdBpbG4dcdmxEmO1qJ/Xs1NF6x0K5+VSutsMw8Z H0Q4dE+DkFgP6tf5+oDFg1WMKEqEfGiUlbOiKK5oGMdoFu7KgYmNKwDJ8c0V8q2IFL8FrYXeS BbZ4iKN8KTPGS0f3SBhqqJgBbRcNraWXtFYC2AUy5I+clNlMsUTsNVJKVXeYtqdqHaXXP3mSn rZ/qMa/U87vTgsdWKj/VlnVFVLFcDUG13aBHWHUyxmf48UdqRqwfTUBgEjOIhxY2BvM5xCEN4 hT2EJoblYft6MHtmO572QY1folwA1YewLO9LGo71CM95XMScPw88zRILgnW1fzDpsyZCA5ZX/ 2o95RQhezdZ4PgMT0MLiURXjfbxUz0p+NB4Mmg== X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170720_085346_202233_A6D241D0 X-CRM114-Status: GOOD ( 11.11 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: <linux-arm-kernel.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/linux-arm-kernel/> List-Post: <mailto:linux-arm-kernel@lists.infradead.org> List-Help: <mailto:linux-arm-kernel-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann <arnd@arndb.de>, linux-kernel@vger.kernel.org MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP |
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 <linux/of_platform.h> #include "common.h" -static void __init sirfsoc_init_late(void) +static void __init __maybe_unused sirfsoc_init_late(void) { sirfsoc_pm_init(); }
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 <arnd@arndb.de> --- Originally submitted Feb 2016, but it got lost --- arch/arm/mach-prima2/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)