Message ID | 20170720155209.3250880-5-arnd@arndb.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 10.140.101.44 with SMTP id t41csp2308955qge; Thu, 20 Jul 2017 08:54:30 -0700 (PDT) X-Received: by 10.99.5.1 with SMTP id 1mr4470561pgf.222.1500566070017; Thu, 20 Jul 2017 08:54:30 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1500566070; cv=none; d=google.com; s=arc-20160816; b=ySnIkRw05V1/cbvAXAq6EMxeKnXk9V4TnF6ZvJRDb7o4eySuTudc6v67v+53tzhIPT j6uredkQ9FB08kX9W8k4m8xE/5j9hxCOIH/wjtgESBU6GTo2Bc+Bq3dmg1ZtHPnrGcX/ zscayGxVaCK4Cz1JjOxVOq3S6ugsy0iXqYZhfFo1mXD97pryHSWs6Xc1P9fQMxrPkUdj IDhJKNGEDFISZQwLdoBZtVmGsN1fAFR6PTHDWGRFdmLzQof4mn8o1KtWqofoSlZt2K6u 67ZXJqWHUxuMJJb8dM8nDJ6vFSjvrvxoza8f5wPXT0vUjapUm9WPEOSvwOIxb1B750zO DJug== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=N+wE+UE/Ou5QLYI9eAfDLRaj51aHe5pMqnK5AMrYtUo=; b=PQdkfPVFfWpCkzFRixub5LtgH/EsdhCPDILn0a1uNPjU7gcIrni9N5iRtZTadpE4EI fR6Pe5LTxQIK5zh1DX+8G0sDKHZqLHVJFJ1BGjtT9F5eYVcD+A8tLoO1Rr0KIuPZhVn8 AsAnPCtHyFQ7NLCOD9b3UU5yH4QIiDAyZiqgyJHnyCrZa8Esz5UN7hSygFVklkz5eQfC /xa8ggSXPueJ6OSLC7YftNz2qXuop9dBZtoNLV/PljGBio64uHIAeSQKOJAL7Hv13sUl 3U8Y0QFWWjyaLNejA1EhP2LZBUitzMWC8d1zpJko1vR89y9ByNRKUex+hcrXTTCUEhzX cWTw== ARC-Authentication-Results: i=1; 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 Return-Path: <linux-kernel-owner@vger.kernel.org> Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id k13si1663137pln.442.2017.07.20.08.54.29; Thu, 20 Jul 2017 08:54:30 -0700 (PDT) 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 S936504AbdGTPy2 (ORCPT <rfc822;georgi.djakov@linaro.org> + 25 others); Thu, 20 Jul 2017 11:54:28 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:61929 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934344AbdGTPyY (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 20 Jul 2017 11:54:24 -0400 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> Cc: Arnd Bergmann <arnd@arndb.de>, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.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== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org |
Series |
[01/12] ARM: ixp4xx: fix ioport_unmap definition
|
expand
|
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(-) -- 2.9.0