Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756237AbcCBQAU (ORCPT ); Wed, 2 Mar 2016 11:00:20 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:54276 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751923AbcCBQAQ (ORCPT ); Wed, 2 Mar 2016 11:00:16 -0500 From: Arnd Bergmann To: Lee Jones Cc: linux-arm-kernel@lists.infradead.org, Arnd Bergmann , linux-kernel@vger.kernel.org Subject: [PATCH 05/14] mfd: ipaq-micro: use __maybe_unused to hide pm functions Date: Wed, 2 Mar 2016 16:58:57 +0100 Message-Id: <1456934350-1389172-6-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:VBU9QBwmf2HHyFflclQhqHsxMmoxGEyqdTvVfe2W9kSgBY3wCYY 61MYS2lBoQrsZ/5bmXTQA3OmcE5tPLnlIjJMDb6DFZI0a4RrFDLQNAcbIeDShvcI8xASa6C LWclqZ4CYya5sb3LMPDZ1v57XXNpuFlMSNdhNWjZR/9EKrMpPzwb9G4SM1n5BYYEVsnahZr kWbyX32I0gqPfunvGZvDA== X-UI-Out-Filterresults: notjunk:1;V01:K0:U8qcpK5hzr0=:VNSx4gcGXDVQLZWQ4wnMjm 7R3M4S0aszYBbVXyR1IYf4N4BFsbKnGhF6bH9JYpvDJdtZwzjJ9NY1lVKLqGeQh3UMpxHCIeB H044UQy1zny/aDFIbuDUdEsQAOAjAgX4i9zNmpTW/XcZrLReN792jvN23rtxbSceQsve8bo2r OS/pGwHUGL9lR9sZAwHA6N51EbdL8v4BrGcSZPybUvfzatHH/8oflll0fP4S2tkU07xev20Yj dK7j9ZwsxBapQm8sDEbifGgcy5XxTZoTAQRfp4dXphIgmV3asSBwrSIULDQxkN7MnRyeZ+Xvl MoydTbCeESRlJkfTvAs6aVEr4X/1DDIaAy9gQq0MfcFzAl/DxT2F2feyOQfzJSUXwMCzDSvad i190lv8KWMvbw6oADYE7LAKJg6YZp2R0/XZ59g9TUFSAskmXi+QlUJJ2EokuwcHUJhS1Fo2mc vJ82NzIju3YhkW6npGZu4zRd+XjrekhEAzq3IqOYo1iX29iRQUyPxn4AueMfnWS+wO8sBLXFF 5S/SEkS7mBC8VGZzoFg/NRWe+M6QeOOdHjl7fZ02m7ljOSrYxYuL+/jietIKUetsDXHaF0Uzv eruzfhGavde3SyUg7reuWPmI8gB1Wo459QZlc34MSabXXPjzaQ24vUXHzaWMI/tHWMpN87Jzn s07EEyDPz01J6BC6VmHecFD+BFkCFhKzao/HFHFLmnb+7JHe6yGIhxpQbEMLseJpptxI= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 962 Lines: 30 The ipaq-micro driver uses SET_SYSTEM_SLEEP_PM_OPS() to remove the reference to its resume function, but does not use an #ifdef around the definition, so we get a build warning: drivers/mfd/ipaq-micro.c:379:12: error: 'micro_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/mfd/ipaq-micro.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/mfd/ipaq-micro.c b/drivers/mfd/ipaq-micro.c index a41859c55bda..df16fd1df68b 100644 --- a/drivers/mfd/ipaq-micro.c +++ b/drivers/mfd/ipaq-micro.c @@ -376,7 +376,7 @@ static const struct mfd_cell micro_cells[] = { { .name = "ipaq-micro-leds", }, }; -static int micro_resume(struct device *dev) +static int __maybe_unused micro_resume(struct device *dev) { struct ipaq_micro *micro = dev_get_drvdata(dev); -- 2.7.0