Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1353778 > unrolled thread

Re: [PATCH 01/14] pinctrl: at91: use __maybe_unused to hide pm functions

Started byLinus Walleij <linus.walleij@linaro.org>
First post2016-03-09 05:10 +0100
Last post2016-03-09 05:10 +0100
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: [PATCH 01/14] pinctrl: at91: use __maybe_unused to hide pm functions Linus Walleij <linus.walleij@linaro.org> - 2016-03-09 05:10 +0100

#1353778 — Re: [PATCH 01/14] pinctrl: at91: use __maybe_unused to hide pm functions

FromLinus Walleij <linus.walleij@linaro.org>
Date2016-03-09 05:10 +0100
SubjectRe: [PATCH 01/14] pinctrl: at91: use __maybe_unused to hide pm functions
Message-ID<raDBD-2tF-11@gated-at.bofh.it>
On Wed, Mar 2, 2016 at 10:58 PM, Arnd Bergmann <arnd@arndb.de> wrote:

> 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 <arnd@arndb.de>

Patch applied with the maintainer ACKs.

Yours,
Linus Walleij

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web