Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753858AbcCHE1o (ORCPT ); Mon, 7 Mar 2016 23:27:44 -0500 Received: from mail-pf0-f171.google.com ([209.85.192.171]:33418 "EHLO mail-pf0-f171.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753547AbcCHE1g (ORCPT ); Mon, 7 Mar 2016 23:27:36 -0500 Date: Tue, 8 Mar 2016 11:27:31 +0700 From: Lee Jones To: Arnd Bergmann Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 05/14] mfd: ipaq-micro: use __maybe_unused to hide pm functions Message-ID: <20160308042731.GG13692@x1> References: <1456934350-1389172-1-git-send-email-arnd@arndb.de> <1456934350-1389172-6-git-send-email-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <1456934350-1389172-6-git-send-email-arnd@arndb.de> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 38 On Wed, 02 Mar 2016, Arnd Bergmann wrote: > 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(-) Applied, thanks. > 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); > -- Lee Jones Linaro STMicroelectronics Landing Team Lead Linaro.org │ Open source software for ARM SoCs Follow Linaro: Facebook | Twitter | Blog