sound/soc/meson/t9015.c:315:34: warning: unused variable 't9015_ids'

From: kernel test robot
Date: Fri Sep 18 2020 - 02:41:42 EST

Hi Jerome,

FYI, the error/warning still remains.

tree: master
head: 10b82d5176488acee2820e5a2cf0f2ec5c3488b6
commit: 33901f5b9b16d212ee58865e9e8e80fc813f12da ASoC: meson: add t9015 internal DAC driver
date: 7 months ago
config: x86_64-randconfig-a011-20200918 (attached as .config)
compiler: clang version 12.0.0 ( 0ff28fa6a75617d61b1aeea77463d6a1684c3c89)
reproduce (this is a W=1 build):
wget -O ~/bin/make.cross
chmod +x ~/bin/make.cross
# install x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
git checkout 33901f5b9b16d212ee58865e9e8e80fc813f12da
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64

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/meson/t9015.c:315:34: warning: unused variable 't9015_ids' [-Wunused-const-variable]
static const struct of_device_id t9015_ids[] = {
1 warning generated.

git remote add linus
git fetch --no-tags linus master
git checkout 33901f5b9b16d212ee58865e9e8e80fc813f12da
vim +/t9015_ids +315 sound/soc/meson/t9015.c

> 315 static const struct of_device_id t9015_ids[] = {
316 { .compatible = "amlogic,t9015", },
317 { }
318 };
319 MODULE_DEVICE_TABLE(of, t9015_ids);

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip