UPSTREAM: ALSA: hda: tas2781: mark const variables as __maybe_unused
An earlier patch changed the DECLARE_TLV_DB_SCALE declaration, but
now there are additional static const variables that cause
the same build warnings:
In file included from sound/pci/hda/tas2781_hda_i2c.c:23:
include/sound/tas2781-tlv.h:23:28: error: 'tas2563_dvc_table' defined but not used [-Werror=unused-const-variable=]
23 | static const unsigned char tas2563_dvc_table[][4] = {
| ^~~~~~~~~~~~~~~~~
In file included from include/sound/tlv.h:10,
from sound/pci/hda/tas2781_hda_i2c.c:22:
include/sound/tas2781-tlv.h:20:35: error: 'tas2563_dvc_tlv' defined but not used [-Werror=unused-const-variable=]
20 | static const DECLARE_TLV_DB_SCALE(tas2563_dvc_tlv, -12150, 50, 1);
| ^~~~~~~~~~~~~~~
Mark them all as unused as well.
BUG=b:357753807
TEST=emerge-rauru sys-kernel/chromeos-kernel-6_6
Change-Id: I4134349caf102701dd7f86db18aa703dd27f2aaa
Signed-off-by:
Arnd Bergmann <arnd@arndb.de>
Link: https://patch.msgid.link/20240719095640.3741247-1-arnd@kernel.org
Signed-off-by:
Takashi Iwai <tiwai@suse.de>
(cherry picked from commit a2d6d8ae)
Signed-off-by:
stefano.chu <stefano.chu@lcfc.corp-partner.google.com>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/kernel/+/6173871
Tested-by:
Fei Shao <fshao@chromium.org>
Reviewed-by:
Sean Paul <sean@poorly.run>
Reviewed-by:
Fei Shao <fshao@chromium.org>
Reviewed-by:
Yu-Che Cheng <giver@chromium.org>
Commit-Queue: Fei Shao <fshao@chromium.org>
Signed-off-by:
Hubert Mazur <hmazur@google.com>
Loading
Please sign in to comment