* [linux-next:master 8414/12330] drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'
@ 2020-09-30 18:51 kernel test robot
2020-09-30 21:58 ` Vladimir Oltean
0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2020-09-30 18:51 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2633 bytes --]
Hi Vladimir,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head: de69ee6df1cfbf3c67787d8504fd21b59da39572
commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e [8414/12330] net: dsa: seville: build as separate module
config: x86_64-randconfig-r002-20200930 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project bcd05599d0e53977a963799d6ee4f6e0bc21331b)
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/next/linux-next.git/commit/?id=d60bc62de4ae068ed4b215c24cdfdd5035aa986e
git remote add linux-next https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
git fetch --no-tags linux-next 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@intel.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@inbox.ru>
:::::: CC: David S. Miller <davem@davemloft.net>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 34488 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [linux-next:master 8414/12330] drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match'
2020-09-30 18:51 [linux-next:master 8414/12330] drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match' kernel test robot
@ 2020-09-30 21:58 ` Vladimir Oltean
0 siblings, 0 replies; 2+ messages in thread
From: Vladimir Oltean @ 2020-09-30 21:58 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 2752 bytes --]
On Thu, Oct 01, 2020 at 02:51:06AM +0800, kernel test robot wrote:
> Hi Vladimir,
>
> First bad commit (maybe != root cause):
>
> tree: (URL mangled by my smart and secure company)
> head: de69ee6df1cfbf3c67787d8504fd21b59da39572
> commit: d60bc62de4ae068ed4b215c24cdfdd5035aa986e [8414/12330] net: dsa: seville: build as separate module
> config: x86_64-randconfig-r002-20200930 (attached as .config)
> compiler: clang version 12.0.0 (URL mangled by my smart and secure company)
> reproduce (this is a W=1 build):
> wget (URL mangled by my smart and secure company) -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
> # (URL mangled by my smart and secure company)
> git remote add linux-next (URL mangled by my smart and secure company)
> git fetch --no-tags linux-next 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@intel.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@inbox.ru>
> :::::: CC: David S. Miller <davem@davemloft.net>
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> (URL mangled by my smart and secure company)
Can a human explain to me what's the problem here? Is it because struct
of_device_id is not used on non-device tree platforms? And if so, what
is the "fix"?
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-09-30 21:58 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-30 18:51 [linux-next:master 8414/12330] drivers/net/dsa/ocelot/seville_vsc9953.c:1107:34: warning: unused variable 'seville_of_match' kernel test robot
2020-09-30 21:58 ` Vladimir Oltean
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.