]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: tegra: mark runtime-pm functions as __maybe_unused
authorArnd Bergmann <arnd@arndb.de>
Thu, 22 Apr 2021 13:34:00 +0000 (15:34 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 22 Apr 2021 15:27:37 +0000 (16:27 +0100)
commit144846f0056c42aefef0c0b8b49576adce66f426
treeb79fefdb1e8626b1e7ca539c073d849c716fc07e
parentf8fa5b4e0eb9f85e9da3fd890d6b763c051fcdcb
ASoC: tegra: mark runtime-pm functions as __maybe_unused

A reorganization of the driver source led to two of them causing
a compile time warning in some configurations:

tegra/tegra20_spdif.c:36:12: error: 'tegra20_spdif_runtime_resume' defined but not used [-Werror=unused-function]
   36 | static int tegra20_spdif_runtime_resume(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
tegra/tegra20_spdif.c:27:12: error: 'tegra20_spdif_runtime_suspend' defined but not used [-Werror=unused-function]
   27 | static int tegra20_spdif_runtime_suspend(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
tegra/tegra30_ahub.c:64:12: error: 'tegra30_ahub_runtime_resume' defined but not used [-Werror=unused-function]
   64 | static int tegra30_ahub_runtime_resume(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
tegra/tegra30_ahub.c:43:12: error: 'tegra30_ahub_runtime_suspend' defined but not used [-Werror=unused-function]
   43 | static int tegra30_ahub_runtime_suspend(struct device *dev)
      |            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

Mark these functions as __maybe_unused to avoid this kind of warning.

Fixes: 15f1362b349e ("ASoC: tegra30: ahub: Remove handing of disabled runtime PM")
Fixes: 328b4cd9336e ("ASoC: tegra20: spdif: Remove handing of disabled runtime PM")
Fixes: 1c0f6160ae2a ("ASoC: tegra20: i2s: Remove handing of disabled runtime PM")
Fixes: b441ca110a32 ("ASoC: tegra30: i2s: Remove handing of disabled runtime PM")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20210422133418.1757893-1-arnd@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/tegra/tegra20_i2s.c
sound/soc/tegra/tegra20_spdif.c
sound/soc/tegra/tegra30_ahub.c
sound/soc/tegra/tegra30_i2s.c