Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756289AbcCBQAX (ORCPT ); Wed, 2 Mar 2016 11:00:23 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:64056 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750977AbcCBQAM (ORCPT ); Wed, 2 Mar 2016 11:00:12 -0500 From: Arnd Bergmann To: Ludovic Desroches , Linus Walleij Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 01/14] pinctrl: at91: use __maybe_unused to hide pm functions Date: Wed, 2 Mar 2016 16:58:53 +0100 Message-Id: <1456934350-1389172-2-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:VFVNm0F4uu+/CFFf3mpr6OSnbdYrlO1UO58e9c8OvwAC5lgv8MT a5xfvtAcV4uuS0cfeYPy9din4dpYAKW4D14/qLNrdLW9qvw2XFv6nLqG8FyrmzOz+gPISol yRj6nRho8SHbNMc1hi1o69b9q9us8a2pqNshsItXh9MF6l+pvfFTeq7pk7lWzQ4CCV0cFWs ckXhCyny5AjeecpkHaiKg== X-UI-Out-Filterresults: notjunk:1;V01:K0:ZHR09aSaE5w=:1vYBg2b7uXOLyr/a92e3+t BjbiOfqzRgAnXZocg03HJ/109rNOa3WsqzbReddVURYbgnfRleO5MsagHtDS3s8HZ4/fchOgE atw8CLWGULToyGhhRiZn0QMIaibrVgIsbM8bTuq/W66/4jcHUEJ4uk2b/XKQsCo2t498ryWVK PyPagOsjdgjkB09Xije8GDgVuhVB8WdAVhzGWhLRGHfbBIJHsp1iK1NPrujYtSEQR8po1U+o/ J4uZFyyo5roNiPSAQHM6bWtTXZVcXYDL0UX+Gw0lUETYjXLa/5PdsOLvoQMU1InqKzr8fbmQs gi65GwvFvat2SL6cdKMXUESZJHmXyGcbwQx2TWeLUdK0qYj6Y1c7jYHQasjQpjja53sSHbGck BXH7blhIcMncVTvYIY2rqHgO1V5inCTYfawyjUNAtv9cYQVZvFU2wjPjiUSzUIogo+weaAWTf F0rCqOjXxKbb5sVZxI8oVhPdoSzfR2LBpq/5spWwHXr7Ga5jIbU6ot86PWFGq0stN8CCfi2/i 7VeWjtA1prPsH6ISfBmrQD0FBNaNQJDP3aGS9BDjGp3hDNOejO4BK/Z+c/SY+iwdtIDgXksHd tMgK6oEZ38OUDuAG+oYKkSISTAp916RFYWhH09p2eTpoghlywCTb8l4umBa3c/xRsc8BNggqq AnWipfFCW5n/lEjixfp67g1YW5Pk9Fgky9dJMbx/UkbfcAwUx+zHY/Sr3WIaL8WF18pY= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1567 Lines: 39 The at91-pio4 pinctrl driver uses SET_SYSTEM_SLEEP_PM_OPS() to conditionally set the correct suspend/resume options, but they become unused when CONFIG_PM is disabled: drivers/pinctrl/pinctrl-at91-pio4.c:827:12: error: 'atmel_pctrl_suspend' defined but not used [-Werror=unused-function] drivers/pinctrl/pinctrl-at91-pio4.c:847:12: error: 'atmel_pctrl_resume' defined but not used [-Werror=unused-function] This adds __maybe_unused annotations so the compiler knows it can silently drop them instead of warning. Signed-off-by: Arnd Bergmann --- drivers/pinctrl/pinctrl-at91-pio4.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/pinctrl/pinctrl-at91-pio4.c b/drivers/pinctrl/pinctrl-at91-pio4.c index ee69db6ae1c7..4429312e848d 100644 --- a/drivers/pinctrl/pinctrl-at91-pio4.c +++ b/drivers/pinctrl/pinctrl-at91-pio4.c @@ -824,7 +824,7 @@ static struct pinctrl_desc atmel_pinctrl_desc = { .pmxops = &atmel_pmxops, }; -static int atmel_pctrl_suspend(struct device *dev) +static int __maybe_unused atmel_pctrl_suspend(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct atmel_pioctrl *atmel_pioctrl = platform_get_drvdata(pdev); @@ -844,7 +844,7 @@ static int atmel_pctrl_suspend(struct device *dev) return 0; } -static int atmel_pctrl_resume(struct device *dev) +static int __maybe_unused atmel_pctrl_resume(struct device *dev) { struct platform_device *pdev = to_platform_device(dev); struct atmel_pioctrl *atmel_pioctrl = platform_get_drvdata(pdev); -- 2.7.0