]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rockchip: use __maybe_unused to hide st_irq_syscfg_resume
authorArnd Bergmann <arnd@arndb.de>
Wed, 2 Mar 2016 15:59:06 +0000 (16:59 +0100)
committerMark Brown <broonie@kernel.org>
Sat, 5 Mar 2016 03:53:40 +0000 (12:53 +0900)
commitfffc8beabfea4c606a9f97502fa760a3c41f6b1d
tree4cd009c468927a51a9af702e470655332b8b2309
parent5441dc93cec27f55d1e7e69d9424f5e97924a7ef
ASoC: rockchip: use __maybe_unused to hide st_irq_syscfg_resume

The rockchip spdif driver uses SIMPLE_DEV_PM_OPS to conditionally
set its power management functions, but we get a warning
about rk_spdif_runtime_resume being unused when CONFIG_PM is not
set:

sound/soc/rockchip/rockchip_spdif.c:67:12: error: 'rk_spdif_runtime_resume' defined but not used [-Werror=unused-function]

This adds a __maybe_unused annotation so the compiler knows
it can silently drop it instead of warning.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/rockchip/rockchip_spdif.c