On Fri, May 25, 2018 at 11:07:42PM +0200, Arnd Bergmann wrote: > The newly added runtime-pm functions cause a harmless warning > when CONFIG_PM is disabled: > > drivers/mmc/host/sunxi-mmc.c:1452:12: error: 'sunxi_mmc_runtime_suspend' defined but not used [-Werror=unused-function] > static int sunxi_mmc_runtime_suspend(struct device *dev) > ^~~~~~~~~~~~~~~~~~~~~~~~~ > drivers/mmc/host/sunxi-mmc.c:1435:12: error: 'sunxi_mmc_runtime_resume' defined but not used [-Werror=unused-function] > static int sunxi_mmc_runtime_resume(struct device *dev) > > This marks them as __maybe_unused to shut up the warning. > > Fixes: 9a8e1e8cc2c0 ("mmc: sunxi: Add runtime_pm support") > Signed-off-by: Arnd Bergmann <arnd@xxxxxxxx> Acked-by: Maxime Ripard <maxime.ripard@xxxxxxxxxxx> Thanks! Maxime -- Maxime Ripard, Bootlin (formerly Free Electrons) Embedded Linux and Kernel engineering https://bootlin.com
Attachment:
signature.asc
Description: PGP signature