]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Intel: atom: fix 'defined but not used' warning
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Wed, 1 Jul 2020 18:37:16 +0000 (13:37 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 1 Jul 2020 19:58:30 +0000 (20:58 +0100)
commit3c8bc598dc4b3f73d8809206ffc1fed87bf14df0
tree6a53ffb62f76513eb91ba6c22bcf33b5f02e5bbe
parenta9b8016fdc8a7a4587e278a518f2021c69b82b04
ASoC: Intel: atom: fix 'defined but not used' warning

Fix W=1 warning. The VOIP controls were not used in the mainline but
in special versions of Android. Keep and use __maybe_used to make
warning go away.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Link: https://lore.kernel.org/r/20200701183716.83314-3-pierre-louis.bossart@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/atom/sst-atom-controls.c