WSL2-Linux-Kernel/sound/soc/tegra
Arnd Bergmann ccd4cc3ed0
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: b5571449e6 ("ASoC: tegra30: ahub: Remove handing of disabled runtime PM")
Fixes: c53b396f0d ("ASoC: tegra20: spdif: Remove handing of disabled runtime PM")
Fixes: 80ec4a4cb3 ("ASoC: tegra20: i2s: Remove handing of disabled runtime PM")
Fixes: b5f6f781fc ("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>
2021-04-22 16:27:37 +01:00
..
Kconfig ASoC: tegra: SND_SOC_TEGRA_AUDIO_GRAPH_CARD should depend on SND_SOC_TEGRA 2021-02-01 13:19:46 +00:00
Makefile ASoC: tegra: Add audio graph based card driver 2021-01-19 14:09:21 +00:00
tegra20_ac97.c ASoC: tegra20: ac97: Add reset control 2021-03-18 13:49:30 +00:00
tegra20_ac97.h ASoC: tegra20: ac97: Add reset control 2021-03-18 13:49:30 +00:00
tegra20_das.c ASoC: tegra: tegra20_das: clarify expression 2021-03-31 18:03:24 +01:00
tegra20_das.h ASoC: tegra: tegra20_das: align function prototypes 2021-03-31 18:03:25 +01:00
tegra20_i2s.c ASoC: tegra: mark runtime-pm functions as __maybe_unused 2021-04-22 16:27:37 +01:00
tegra20_i2s.h ASoC: tegra20: i2s: Add reset control 2021-03-18 13:49:31 +00:00
tegra20_spdif.c ASoC: tegra: mark runtime-pm functions as __maybe_unused 2021-04-22 16:27:37 +01:00
tegra20_spdif.h
tegra30_ahub.c ASoC: tegra: mark runtime-pm functions as __maybe_unused 2021-04-22 16:27:37 +01:00
tegra30_ahub.h ASoC: tegra30: ahub: Switch to use reset-bulk API 2021-03-18 13:49:34 +00:00
tegra30_i2s.c ASoC: tegra: mark runtime-pm functions as __maybe_unused 2021-04-22 16:27:37 +01:00
tegra30_i2s.h
tegra186_dspk.c ASoC: tegra: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:49 +00:00
tegra186_dspk.h
tegra210_admaif.c
tegra210_admaif.h
tegra210_ahub.c
tegra210_ahub.h
tegra210_dmic.c ASoC: tegra: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:49 +00:00
tegra210_dmic.h
tegra210_i2s.c ASoC: tegra: sync parameter naming (rate/sample_bits) 2021-01-21 12:37:49 +00:00
tegra210_i2s.h
tegra_alc5632.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_asoc_utils.c
tegra_asoc_utils.h
tegra_audio_graph_card.c ASoC: audio-graph: move audio_graph_remove() to simple-card-utils.c 2021-04-20 17:25:45 +01:00
tegra_cif.h
tegra_max98090.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_pcm.c ASoC: tegra: Simplify with dma_set_mask_and_coherent() 2021-01-19 14:06:12 +00:00
tegra_pcm.h
tegra_rt5640.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_rt5677.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_sgtl5000.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_wm8753.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_wm8903.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
tegra_wm9712.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00
trimslice.c ASoC: tegra: Don't warn on probe deferral 2020-11-11 12:35:10 +00:00