[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202012211724.FiYgAjgI-lkp@intel.com>
Date: Mon, 21 Dec 2020 17:37:29 +0800
From: kernel test robot <lkp@...el.com>
To: Vladimir Oltean <vladimir.oltean@....com>
Cc: kbuild-all@...ts.01.org, clang-built-linux@...glegroups.com,
linux-kernel@...r.kernel.org
Subject: drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused
variable 'seville_of_match'
Hi Vladimir,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: e37b12e4bb21e7c81732370b0a2b34bd196f380b
commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e net: dsa: seville: build as separate module
date: 3 months ago
config: x86_64-randconfig-r016-20201221 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project cee1e7d14f4628d6174b33640d502bff3b54ae45)
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=d60bc62de4ae068ed4b215c24cdfdd5035aa986e
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout d60bc62de4ae068ed4b215c24cdfdd5035aa986e
# 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@...el.com>
All warnings (new ones prefixed by >>):
>> drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match' [-Wunused-const-variable]
static const struct of_device_id seville_of_match[] = {
^
1 warning generated.
vim +/seville_of_match +1107 drivers/net/dsa/ocelot/seville_vsc9953.c
84705fc165526e8 Maxim Kochetkov 2020-07-13 1106
84705fc165526e8 Maxim Kochetkov 2020-07-13 @1107 static const struct of_device_id seville_of_match[] = {
84705fc165526e8 Maxim Kochetkov 2020-07-13 1108 { .compatible = "mscc,vsc9953-switch" },
84705fc165526e8 Maxim Kochetkov 2020-07-13 1109 { },
84705fc165526e8 Maxim Kochetkov 2020-07-13 1110 };
84705fc165526e8 Maxim Kochetkov 2020-07-13 1111 MODULE_DEVICE_TABLE(of, seville_of_match);
84705fc165526e8 Maxim Kochetkov 2020-07-13 1112
:::::: The code at line 1107 was first introduced by commit
:::::: 84705fc165526e8e55d208b2b10a48cc720a106a net: dsa: felix: introduce support for Seville VSC9953 switch
:::::: TO: Maxim Kochetkov <fido_max@...ox.ru>
:::::: CC: David S. Miller <davem@...emloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org
Download attachment ".config.gz" of type "application/gzip" (42601 bytes)
Powered by blists - more mailing lists