From patchwork Wed Mar 2 15:58:53 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102623 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2460019lbc; Wed, 2 Mar 2016 08:00:20 -0800 (PST) X-Received: by 10.98.32.18 with SMTP id g18mr26064886pfg.116.1456934419828; Wed, 02 Mar 2016 08:00:19 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ji9si13693841pac.108.2016.03.02.08.00.19; Wed, 02 Mar 2016 08:00:19 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-gpio-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-gpio-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-gpio-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756054AbcCBQAR (ORCPT + 4 others); Wed, 2 Mar 2016 11:00:17 -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 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0Mecsy-1aHQRg1IPA-00OHAn; Wed, 02 Mar 2016 16:59:40 +0100 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-gpio-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-gpio@vger.kernel.org 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(-) -- 2.7.0 -- To unsubscribe from this list: send the line "unsubscribe linux-gpio" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html 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);