]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rsnd: mark PM functions __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Wed, 28 Mar 2018 14:53:10 +0000 (16:53 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 12 Apr 2018 14:45:34 +0000 (15:45 +0100)
commitf9ab2f2f20500f23c0e5e9195a33b9fb74165c2b
treec2c76ff896d6305a7ada8ab5f3a33252f1c85bd1
parente9c55576f5e176b54f2d28b6ae2bb369e27d0577
ASoC: rsnd: mark PM functions __maybe_unused

The suspend/resume callbacks are now optional, leading to a warning
when they are unused:

sound/soc/sh/rcar/core.c:1548:12: error: 'rsnd_resume' defined but not used [-Werror=unused-function]
 static int rsnd_resume(struct device *dev)
            ^~~~~~~~~~~
sound/soc/sh/rcar/core.c:1539:12: error: 'rsnd_suspend' defined but not used [-Werror=unused-function]
 static int rsnd_suspend(struct device *dev)

This marks the as __maybe_unused to avoid the warning.

Fixes: be2f0c9b32b2 ("ASoC: rsnd: set pm_ops in hibernate-compatible way")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sh/rcar/core.c