drivers/mtd/devices/mchp48l640.c:350:34: warning: unused variable 'mchp48l640_of_table'

From: kernel test robot
Date: Sat Nov 06 2021 - 07:01:11 EST


tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: fe91c4725aeed35023ba4f7a1e1adfebb6878c23
commit: 88d1250267535b26106ca9582701bbad940cec01 mtd: devices: add support for microchip 48l640 EERAM
date: 5 months ago
config: i386-randconfig-a013-20210929 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project dc6e8dfdfe7efecfda318d43a06fae18b40eb498)
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=88d1250267535b26106ca9582701bbad940cec01
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 88d1250267535b26106ca9582701bbad940cec01
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=i386

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/devices/mchp48l640.c:350:34: warning: unused variable 'mchp48l640_of_table' [-Wunused-const-variable]
static const struct of_device_id mchp48l640_of_table[] = {
^
1 warning generated.


vim +/mchp48l640_of_table +350 drivers/mtd/devices/mchp48l640.c

349
> 350 static const struct of_device_id mchp48l640_of_table[] = {
351 {
352 .compatible = "microchip,48l640",
353 .data = &mchp48l640_caps,
354 },
355 {}
356 };
357 MODULE_DEVICE_TABLE(of, mchp48l640_of_table);
358

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

Attachment: .config.gz
Description: application/gzip