Re: [PATCH] iio: magn/ak8974: avoid unused function warning

2016-08-29 Thread Jonathan Cameron
On 26/08/16 16:31, Arnd Bergmann wrote: > The ak8974_configure() function is used only from the PM code, > but that can be hidden when CONFIG_PM is disabled: > > drivers/iio/magnetometer/ak8974.c:201:12: error: 'ak8974_configure' defined > but not used [-Werror=unused-function] > > This replaces

Re: [PATCH] iio: magn/ak8974: avoid unused function warning

2016-08-29 Thread Linus Walleij
On Fri, Aug 26, 2016 at 5:31 PM, Arnd Bergmann wrote: > The ak8974_configure() function is used only from the PM code, > but that can be hidden when CONFIG_PM is disabled: > > drivers/iio/magnetometer/ak8974.c:201:12: error: 'ak8974_configure' defined > but not used [-Werror=unused-function] > >

[PATCH] iio: magn/ak8974: avoid unused function warning

2016-08-26 Thread Arnd Bergmann
The ak8974_configure() function is used only from the PM code, but that can be hidden when CONFIG_PM is disabled: drivers/iio/magnetometer/ak8974.c:201:12: error: 'ak8974_configure' defined but not used [-Werror=unused-function] This replaces the #ifdef with a __maybe_unused annotation, which wi