drivers/iio/adc/at91_adc.c:1439:34: warning: unused variable 'at91_adc_dt_ids'
From: kernel test robot
Date: Sun Sep 27 2020 - 05:13:01 EST
Hi Alexandru,
FYI, the error/warning still remains.
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: a1bffa48745afbb54cb4f873bba783b2ae8be042
commit: 4027860dcc4cd0c45c36bae21e45bee5a17f2f0f iio: Kconfig: at91_adc: add COMPILE_TEST dependency to driver
date: 4 months ago
config: x86_64-randconfig-r033-20200927 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project a83eb048cb9a75da7a07a9d5318bbdbf54885c87)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4027860dcc4cd0c45c36bae21e45bee5a17f2f0f
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4027860dcc4cd0c45c36bae21e45bee5a17f2f0f
# 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 >>):
>> drivers/iio/adc/at91_adc.c:1439:34: warning: unused variable 'at91_adc_dt_ids' [-Wunused-const-variable]
static const struct of_device_id at91_adc_dt_ids[] = {
^
1 warning generated.
vim +/at91_adc_dt_ids +1439 drivers/iio/adc/at91_adc.c
e1811f97ba985fe Josh Wu 2013-08-27 1438
e364185f3ed2ecc Maxime Ripard 2012-05-11 @1439 static const struct of_device_id at91_adc_dt_ids[] = {
e1811f97ba985fe Josh Wu 2013-08-27 1440 { .compatible = "atmel,at91sam9260-adc", .data = &at91sam9260_caps },
65b1fdbac9e39d9 Alexandre Belloni 2014-04-15 1441 { .compatible = "atmel,at91sam9rl-adc", .data = &at91sam9rl_caps },
e1811f97ba985fe Josh Wu 2013-08-27 1442 { .compatible = "atmel,at91sam9g45-adc", .data = &at91sam9g45_caps },
e1811f97ba985fe Josh Wu 2013-08-27 1443 { .compatible = "atmel,at91sam9x5-adc", .data = &at91sam9x5_caps },
e364185f3ed2ecc Maxime Ripard 2012-05-11 1444 {},
e364185f3ed2ecc Maxime Ripard 2012-05-11 1445 };
e364185f3ed2ecc Maxime Ripard 2012-05-11 1446 MODULE_DEVICE_TABLE(of, at91_adc_dt_ids);
467a44b0372d826 Alexandre Belloni 2014-05-03 1447
:::::: The code at line 1439 was first introduced by commit
:::::: e364185f3ed2ecc0a4dbfe2507f20fd5db76c966 IIO: AT91: Add DT support to at91_adc driver
:::::: TO: Maxime Ripard <maxime.ripard@xxxxxxxxxxxxxxxxxx>
:::::: CC: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip