drivers/reset/reset-a10sr.c:111:34: warning: unused variable 'a10sr_reset_of_match'

From: kernel test robot
Date: Fri May 07 2021 - 01:15:01 EST


Hi Krzysztof,

First bad commit (maybe != root cause):

tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e48661230cc35b3d0f4367eddfc19f86463ab917
commit: 4a9a1a5602d82c079325bf37466af0b67d6c0b9e arm64: socfpga: merge Agilex and N5X into ARCH_INTEL_SOCFPGA
date: 6 weeks ago
config: arm64-randconfig-r016-20210507 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project a3a8a1a15b524d91b5308db68e9d293b34cd88dd)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=4a9a1a5602d82c079325bf37466af0b67d6c0b9e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 4a9a1a5602d82c079325bf37466af0b67d6c0b9e
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=arm64

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/reset/reset-a10sr.c:111:34: warning: unused variable 'a10sr_reset_of_match' [-Wunused-const-variable]
static const struct of_device_id a10sr_reset_of_match[] = {
^
1 warning generated.


vim +/a10sr_reset_of_match +111 drivers/reset/reset-a10sr.c

627006820268f9 Thor Thayer 2017-02-22 110
627006820268f9 Thor Thayer 2017-02-22 @111 static const struct of_device_id a10sr_reset_of_match[] = {
627006820268f9 Thor Thayer 2017-02-22 112 { .compatible = "altr,a10sr-reset" },
627006820268f9 Thor Thayer 2017-02-22 113 { },
627006820268f9 Thor Thayer 2017-02-22 114 };
627006820268f9 Thor Thayer 2017-02-22 115 MODULE_DEVICE_TABLE(of, a10sr_reset_of_match);
627006820268f9 Thor Thayer 2017-02-22 116

:::::: The code at line 111 was first introduced by commit
:::::: 627006820268f92b62b2bde486c76ccd0fadb671 reset: Add Altera Arria10 SR Reset Controller

:::::: TO: Thor Thayer <thor.thayer@xxxxxxxxxxxxxxx>
:::::: CC: Philipp Zabel <p.zabel@xxxxxxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip