sound/soc/codecs/rt5514-spi.c:496:34: warning: 'rt5514_of_match' defined but not used

From: kernel test robot
Date: Wed Feb 05 2025 - 15:39:46 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 92514ef226f511f2ca1fb1b8752966097518edc0
commit: bbd7ffdbef6888459f301c5889f3b14ada38b913 clk: Allow the common clk framework to be selectable
date: 4 years, 9 months ago
config: parisc-randconfig-r025-20211224 (https://download.01.org/0day-ci/archive/20250206/202502060435.99RUqBCx-lkp@xxxxxxxxx/config)
compiler: hppa-linux-gcc (GCC) 12.4.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250206/202502060435.99RUqBCx-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/202502060435.99RUqBCx-lkp@xxxxxxxxx/

All warnings (new ones prefixed by >>):

In file included from include/linux/mm.h:95,
from include/linux/scatterlist.h:8,
from include/linux/spi/spi.h:14,
from sound/soc/codecs/rt5514-spi.c:11:
include/asm-generic/pgtable.h: In function 'pte_clear_not_present_full':
arch/parisc/include/asm/pgtable.h:96:23: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
arch/parisc/include/asm/pgtable.h:322:34: note: in expansion of macro 'set_pte_at'
322 | #define pte_clear(mm, addr, xp) set_pte_at(mm, addr, xp, __pte(0))
| ^~~~~~~~~~
include/asm-generic/pgtable.h:202:9: note: in expansion of macro 'pte_clear'
202 | pte_clear(mm, address, ptep);
| ^~~~~~~~~
include/asm-generic/pgtable.h: In function '__ptep_modify_prot_commit':
arch/parisc/include/asm/pgtable.h:96:23: warning: variable 'old_pte' set but not used [-Wunused-but-set-variable]
96 | pte_t old_pte; \
| ^~~~~~~
include/asm-generic/pgtable.h:641:9: note: in expansion of macro 'set_pte_at'
641 | set_pte_at(vma->vm_mm, addr, ptep, pte);
| ^~~~~~~~~~
sound/soc/codecs/rt5514-spi.c: At top level:
>> sound/soc/codecs/rt5514-spi.c:496:34: warning: 'rt5514_of_match' defined but not used [-Wunused-const-variable=]
496 | static const struct of_device_id rt5514_of_match[] = {
| ^~~~~~~~~~~~~~~


vim +/rt5514_of_match +496 sound/soc/codecs/rt5514-spi.c

58f1c07d23cddb oder_chiou@xxxxxxxxxxx 2017-11-08 495
6eebf35b0e4a02 Oder Chiou 2016-06-06 @496 static const struct of_device_id rt5514_of_match[] = {
6eebf35b0e4a02 Oder Chiou 2016-06-06 497 { .compatible = "realtek,rt5514", },
6eebf35b0e4a02 Oder Chiou 2016-06-06 498 {},
6eebf35b0e4a02 Oder Chiou 2016-06-06 499 };
6eebf35b0e4a02 Oder Chiou 2016-06-06 500 MODULE_DEVICE_TABLE(of, rt5514_of_match);
6eebf35b0e4a02 Oder Chiou 2016-06-06 501

:::::: The code at line 496 was first introduced by commit
:::::: 6eebf35b0e4a02248f7dba5d1719c6896afe41ba ASoC: rt5514: add rt5514 SPI driver

:::::: TO: Oder Chiou <oder_chiou@xxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

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