From patchwork Wed Mar 2 15:58:54 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102616 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2461174lbc; Wed, 2 Mar 2016 08:02:19 -0800 (PST) X-Received: by 10.66.142.132 with SMTP id rw4mr38799110pab.26.1456934539431; Wed, 02 Mar 2016 08:02:19 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id a5si19891722pat.19.2016.03.02.08.02.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 08:02:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1ab9D7-0002ON-QE; Wed, 02 Mar 2016 16:01:13 +0000 Received: from mout.kundenserver.de ([212.227.17.24]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ab9C9-0000Se-6t for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2016 16:00:17 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0LlpPU-1a25Pz20dU-00ZLyr; Wed, 02 Mar 2016 16:59:43 +0100 From: Arnd Bergmann To: Thomas Gleixner , Jason Cooper , Marc Zyngier Subject: [PATCH 02/14] irqchip: st: use __maybe_unused to hide st_irq_syscfg_resume Date: Wed, 2 Mar 2016 16:58:54 +0100 Message-Id: <1456934350-1389172-3-git-send-email-arnd@arndb.de> X-Mailer: git-send-email 2.7.0 In-Reply-To: <1456934350-1389172-1-git-send-email-arnd@arndb.de> References: <1456934350-1389172-1-git-send-email-arnd@arndb.de> X-Provags-ID: V03:K0:epQWwAJil4TWbwpg9vsVnS9/yGsNAZE6bw7mQEG7IqdyXv0wUWH h1jNKrgTo0BmOXInqvS4oWOxQfoFFy3VymyLAhDWSxrfn/YNjQ8CTYNgJx0efiyaWLjj26O gCZ5vg84yjojLdk+izIJgne/OOGu8lcNJv+SvCD94SqvVo1jVnGS5wVyUDO//7UoFVy2uEW 3yyb50YdPpUJy7/ChZYJw== X-UI-Out-Filterresults: notjunk:1; V01:K0:CdV9BZg9wuc=:CJ6sFyC/e9tRPsody+S9rr Uq3zicPihBym5Wo481B88PyQ6MTuJliqvGpdZsFzwtdPnzItyHibvFaQ+sHoZ6MBaEAmml9ME oz0DO63eVxVSKyMRXEXb05yKb4jHVFpB6veSwWACvcJ+qxgnj2b3CmMcWLoL5f3KtLCobWTrm J6MtqD+7d/GrEh32B1Pzy38h9ySTryE2yphSGhdUbidYTmcWSYCwgjWtIozc5rYmUOyUNEhox 1EKyu0FaMoSMnsw6+afy67hS3MMS1XwKOX+5972MxaK6l84GvEpLzbnf3FiQ68aolUD7sC2CK Xl9NZkCpVMn1xpDfeJJA7QN0TRzHtU04zLZEO5io4kJPLVFUdfHiHy4dkd8Xu66xZb++kvGYv MZRwpMdmw877ixN1fLqrEHmxAe1xvMn9h3mjEvPmY0LxLEWehu5RsK+gXg1SnS85jImSGnbg/ z3AiTF7Nsf8NcUswJ4JURV+QPjZJUQCA1440T6XwQwO1vME1kDDuGoe4KepTi2kujqecC+pkr 6sTYZMZJRdmyAc4OSBMSUJAF8DqrjKY2qwobTqNz0wkjM+fOtimhGdQ/jjJr9f9mv2ZZ/YxN9 JdfRipDKq4fvvdom7018sl13f/RxMI2i4OgsjvlOSAaOx8AXwZX0ygs9dD8jEP/XjmO2B6DiV 7/xdOMhJmlsa5ftOMRIUcIHmK5pxMUVWAbVGaLPgNIthcyI5hutPvOrM5fe0NO7uO/T4= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160302_080013_781290_BB848C33 X-CRM114-Status: GOOD ( 10.94 ) X-Spam-Score: -2.6 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.6 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [212.227.17.24 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.24 listed in wl.mailspike.net] -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org the st irqchip driver uses SIMPLE_DEV_PM_OPS to conditionally set its power management functions, but we get a warning about st_irq_syscfg_resume being unused when CONFIG_PM is not set: drivers/irqchip/irq-st.c:183:12: error: 'st_irq_syscfg_resume' defined but not used [-Werror=unused-function] This adds a __maybe_unused annotation so the compiler knows it can silently drop it instead of warning. Signed-off-by: Arnd Bergmann --- drivers/irqchip/irq-st.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.7.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel diff --git a/drivers/irqchip/irq-st.c b/drivers/irqchip/irq-st.c index 9af48a85c16f..5e0e250db0be 100644 --- a/drivers/irqchip/irq-st.c +++ b/drivers/irqchip/irq-st.c @@ -180,7 +180,7 @@ static int st_irq_syscfg_probe(struct platform_device *pdev) return st_irq_syscfg_enable(pdev); } -static int st_irq_syscfg_resume(struct device *dev) +static int __maybe_unused st_irq_syscfg_resume(struct device *dev) { struct st_irq_syscfg *ddata = dev_get_drvdata(dev);