From patchwork Wed Mar 2 15:58:57 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 102619 Delivered-To: patch@linaro.org Received: by 10.112.199.169 with SMTP id jl9csp2460773lbc; Wed, 2 Mar 2016 08:01:38 -0800 (PST) X-Received: by 10.98.34.205 with SMTP id p74mr16349602pfj.93.1456934497969; Wed, 02 Mar 2016 08:01:37 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f88si58938264pfj.136.2016.03.02.08.01.37 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 02 Mar 2016 08:01:37 -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 1ab9Cb-0001zk-03; Wed, 02 Mar 2016 16:00:41 +0000 Received: from mout.kundenserver.de ([212.227.17.10]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ab9C8-0000TC-EH for linux-arm-kernel@lists.infradead.org; Wed, 02 Mar 2016 16:00:13 +0000 Received: from wuerfel.lan. ([78.42.132.4]) by mrelayeu.kundenserver.de (mreue103) with ESMTPA (Nemesis) id 0MTveb-1aSAsT1Svh-00QnCy; Wed, 02 Mar 2016 16:59:52 +0100 From: Arnd Bergmann To: Lee Jones 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= X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160302_080012_937310_53351DDF X-CRM114-Status: GOOD ( 11.61 ) 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.10 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H2 RBL: Average reputation (+2) [212.227.17.10 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 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(-) -- 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/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);