[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CACRpkdZCJKLRYhYCXQL9J7hsWosVZCGjPy6P8KTQUXF70ZcQAA@mail.gmail.com>
Date: Thu, 23 Feb 2017 15:43:15 +0100
From: Linus Walleij <linus.walleij@...aro.org>
To: Arnd Bergmann <arnd@...db.de>
Cc: Alexandre Courbot <gnurou@...il.com>, Duc Dang <dhdang@....com>,
"linux-gpio@...r.kernel.org" <linux-gpio@...r.kernel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2] gpio: xgene: mark PM functions as __maybe_unused
On Fri, Feb 17, 2017 at 4:13 PM, Arnd Bergmann <arnd@...db.de> wrote:
> When CONFIG_PM_SLEEP is disabled, we get a warning about unused functions:
>
> drivers/gpio/gpio-xgene.c:155:12: warning: 'xgene_gpio_resume' defined but not used [-Wunused-function]
> static int xgene_gpio_resume(struct device *dev)
> ^~~~~~~~~~~~~~~~~
> drivers/gpio/gpio-xgene.c:142:12: warning: 'xgene_gpio_suspend' defined but not used [-Wunused-function]
> static int xgene_gpio_suspend(struct device *dev)
>
> The warnings are harmless and can be avoided by simplifying the code and marking
> the functions as __maybe_unused.
>
> Signed-off-by: Arnd Bergmann <arnd@...db.de>
> ---
> v2: remove #ifdef around set_dr_val as well, to avoid build regression
Patch applied for fixes.
Yours,
Linus Walleij
Powered by blists - more mailing lists