sound/soc/samsung/aries_wm8994.c:525:34: warning: unused variable 'samsung_wm8994_of_match'

From: kernel test robot
Date: Sun Jun 27 2021 - 17:29:50 EST


Hi Mark,

FYI, the error/warning still remains.

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 625acffd7ae2c52898d249e6c5c39f348db0d8df
commit: 84569f329f7fcb40b7b1860f273b2909dabf2a2b Merge remote-tracking branch 'asoc/for-5.9' into asoc-next
date: 11 months ago
config: arm-randconfig-r012-20210628 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 59558129276098d62046c8cda92240d292cbfb1c)
reproduce (this is a W=1 build):
wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=84569f329f7fcb40b7b1860f273b2909dabf2a2b
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 84569f329f7fcb40b7b1860f273b2909dabf2a2b
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> sound/soc/samsung/aries_wm8994.c:525:34: warning: unused variable 'samsung_wm8994_of_match' [-Wunused-const-variable]
static const struct of_device_id samsung_wm8994_of_match[] = {
^
1 warning generated.


vim +/samsung_wm8994_of_match +525 sound/soc/samsung/aries_wm8994.c

7a3a7671fa6c7e Jonathan Bakker 2020-06-14 524
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 @525 static const struct of_device_id samsung_wm8994_of_match[] = {
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 526 {
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 527 .compatible = "samsung,fascinate4g-wm8994",
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 528 .data = &fascinate4g_variant,
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 529 },
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 530 {
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 531 .compatible = "samsung,aries-wm8994",
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 532 .data = &aries_variant,
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 533 },
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 534 { /* sentinel */ },
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 535 };
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 536 MODULE_DEVICE_TABLE(of, samsung_wm8994_of_match);
7a3a7671fa6c7e Jonathan Bakker 2020-06-14 537

:::::: The code at line 525 was first introduced by commit
:::::: 7a3a7671fa6c7e90aff5f4242add2a40587b85ef ASoC: samsung: Add driver for Aries boards

:::::: TO: Jonathan Bakker <xc-racer2@xxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip