Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756507AbcCBQHu (ORCPT ); Wed, 2 Mar 2016 11:07:50 -0500 Received: from mout.kundenserver.de ([212.227.17.24]:55777 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755663AbcCBQAU (ORCPT ); Wed, 2 Mar 2016 11:00:20 -0500 From: Arnd Bergmann To: Thomas Gleixner , Jason Cooper , Marc Zyngier Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org 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= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1013 Lines: 30 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(-) 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); -- 2.7.0