drivers/mtd/nand/raw/omap2.c:2302:34: warning: unused variable 'omap_nand_ids'

From: kernel test robot
Date: Wed Aug 04 2021 - 16:33:13 EST


Hi Sid,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: d5ad8ec3cfb56a017de6a784835666475b4be349
commit: 788dcee0306e1bdbae1a76d1b3478bb899c5838e Hexagon: fix build errors
date: 3 months ago
config: hexagon-buildonly-randconfig-r006-20210805 (attached as .config)
compiler: clang version 12.0.0
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
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=788dcee0306e1bdbae1a76d1b3478bb899c5838e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 788dcee0306e1bdbae1a76d1b3478bb899c5838e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon

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/mtd/nand/raw/omap2.c:2302:34: warning: unused variable 'omap_nand_ids' [-Wunused-const-variable]
static const struct of_device_id omap_nand_ids[] = {
^
1 warning generated.
--
>> sound/soc/codecs/adau1977-spi.c:58:34: warning: unused variable 'adau1977_spi_of_match' [-Wunused-const-variable]
static const struct of_device_id adau1977_spi_of_match[] = {
^
1 warning generated.


vim +/omap_nand_ids +2302 drivers/mtd/nand/raw/omap2.c

67ce04bf2746f8 drivers/mtd/nand/omap2.c Vimal Singh 2009-05-12 2301
c9711ec5250b22 drivers/mtd/nand/omap2.c Roger Quadros 2014-05-21 @2302 static const struct of_device_id omap_nand_ids[] = {
c9711ec5250b22 drivers/mtd/nand/omap2.c Roger Quadros 2014-05-21 2303 { .compatible = "ti,omap2-nand", },
c9711ec5250b22 drivers/mtd/nand/omap2.c Roger Quadros 2014-05-21 2304 {},
c9711ec5250b22 drivers/mtd/nand/omap2.c Roger Quadros 2014-05-21 2305 };
b156b7f2169bb4 drivers/mtd/nand/omap2.c Javier Martinez Canillas 2016-10-17 2306 MODULE_DEVICE_TABLE(of, omap_nand_ids);
c9711ec5250b22 drivers/mtd/nand/omap2.c Roger Quadros 2014-05-21 2307

:::::: The code at line 2302 was first introduced by commit
:::::: c9711ec5250b22fd94e9b34c17c095e001a90e66 mtd: nand: omap: Clean up device tree support

:::::: TO: Roger Quadros <rogerq@xxxxxx>
:::::: CC: Roger Quadros <rogerq@xxxxxx>

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

Attachment: .config.gz
Description: application/gzip