OSDN Git Service

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)
commit544079abf603bf7823453748285b7cc048b09a9f
tree6a53ffb62f76513eb91ba6c22bcf33b5f02e5bbe
parent11013884025044374ee6222408f67ec518831353
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