sound/soc/amd/acp3x-rt5682-max9836.c:315:36: warning: 'acp3x_audio_acpi_match' defined but not used

From: kernel test robot
Date: Sun Nov 05 2023 - 22:14:14 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 77fa2fbe87fc605c4bfa87dff87be9bfded0e9a3
commit: 6b8e4e7db3cd236a2cbb720360fb135087a2ac1d ASoC: amd: Add machine driver for Raven based platform
date: 3 years, 8 months ago
config: x86_64-buildonly-randconfig-r001-20220516 (https://download.01.org/0day-ci/archive/20231106/202311061037.NzRrAjdy-lkp@xxxxxxxxx/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231106/202311061037.NzRrAjdy-lkp@xxxxxxxxx/reproduce)

If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202311061037.NzRrAjdy-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

>> sound/soc/amd/acp3x-rt5682-max9836.c:315:36: warning: 'acp3x_audio_acpi_match' defined but not used [-Wunused-const-variable=]
315 | static const struct acpi_device_id acp3x_audio_acpi_match[] = {
| ^~~~~~~~~~~~~~~~~~~~~~


vim +/acp3x_audio_acpi_match +315 sound/soc/amd/acp3x-rt5682-max9836.c

314
> 315 static const struct acpi_device_id acp3x_audio_acpi_match[] = {
316 { "AMDI5682", 0 },
317 {},
318 };
319 MODULE_DEVICE_TABLE(acpi, acp3x_audio_acpi_match);
320

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki