ASoC: tas2781: mark dvc_tlv with __maybe_unused
authorGergo Koteles <soyer@irl.hu>
Thu, 28 Mar 2024 22:47:37 +0000 (23:47 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 29 Mar 2024 07:34:38 +0000 (08:34 +0100)
commit831ec5e3538e989c7995137b5c5c661991a09504
tree83c99c7cf765273c4aa3ad2862153dab0984cf18
parent2d0401ee38d43ab0e4cdd02dfc9d402befb2b5c8
ASoC: tas2781: mark dvc_tlv with __maybe_unused

Since we put dvc_tlv static variable to a header file it's copied to
each module that includes the header. But not all of them are actually
used it.

Fix this W=1 build warning:

include/sound/tas2781-tlv.h:18:35: warning: 'dvc_tlv' defined but not
used [-Wunused-const-variable=]

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202403290354.v0StnRpc-lkp@intel.com/
Fixes: ae065d0ce9e3 ("ALSA: hda/tas2781: remove digital gain kcontrol")
Signed-off-by: Gergo Koteles <soyer@irl.hu>
Message-ID: <0e461545a2a6e9b6152985143e50526322e5f76b.1711665731.git.soyer@irl.hu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
include/sound/tas2781-tlv.h