All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
@ 2020-09-10 21:11 kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-09-10 21:11 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2816 bytes --]

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   7fe10096c1508c7f033d34d0741809f8eecc1ed4
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   6 months ago
config: x86_64-randconfig-a011-20200910 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0a5dc7effb191eff740e0e7ae7bd8e1f6bdb3ad9)
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
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # 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/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
   static const struct of_device_id sirf_hwpinlock_ids[] = {
                                    ^
   1 warning generated.
--
>> drivers/hwspinlock/sprd_hwspinlock.c:141:34: warning: unused variable 'sprd_hwspinlock_of_match' [-Wunused-const-variable]
   static const struct of_device_id sprd_hwspinlock_of_match[] = {
                                    ^
   1 warning generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c

cc16d664e21ef6 Wei Chen 2015-05-26  86  
cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26  88  	{ .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26  89  	{},
cc16d664e21ef6 Wei Chen 2015-05-26  90  };
cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26  92  

:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver

:::::: TO: Wei Chen <wei.chen@csr.com>
:::::: CC: Ohad Ben-Cohen <ohad@wizery.com>

---
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: 38904 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
@ 2020-08-09 19:07 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-08-09 19:07 UTC (permalink / raw)
  To: Baolin Wang; +Cc: kbuild-all, clang-built-linux, linux-kernel, Bjorn Andersson

[-- Attachment #1: Type: text/plain, Size: 2203 bytes --]

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   5 months ago
config: x86_64-randconfig-a004-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # 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/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
   static const struct of_device_id sirf_hwpinlock_ids[] = {
                                    ^
   1 warning generated.

vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c

cc16d664e21ef6 Wei Chen 2015-05-26  86  
cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26  88  	{ .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26  89  	{},
cc16d664e21ef6 Wei Chen 2015-05-26  90  };
cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26  92  

:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver

:::::: TO: Wei Chen <wei.chen@csr.com>
:::::: CC: Ohad Ben-Cohen <ohad@wizery.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 33834 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
@ 2020-08-09 19:07 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-08-09 19:07 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2253 bytes --]

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   06a81c1c7db9bd5de0bd38cd5acc44bb22b99150
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   5 months ago
config: x86_64-randconfig-a004-20200810 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 0b90a08f7722980f6074c6eada8022242408cdb4)
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
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # 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/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
   static const struct of_device_id sirf_hwpinlock_ids[] = {
                                    ^
   1 warning generated.

vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c

cc16d664e21ef6 Wei Chen 2015-05-26  86  
cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26  88  	{ .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26  89  	{},
cc16d664e21ef6 Wei Chen 2015-05-26  90  };
cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26  92  

:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver

:::::: TO: Wei Chen <wei.chen@csr.com>
:::::: CC: Ohad Ben-Cohen <ohad@wizery.com>

---
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: 33834 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* Re: drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
  2020-06-07 18:37 ` kernel test robot
  (?)
@ 2020-06-08 12:07 ` Baolin Wang
  -1 siblings, 0 replies; 6+ messages in thread
From: Baolin Wang @ 2020-06-08 12:07 UTC (permalink / raw)
  To: kernel test robot; +Cc: kbuild-all, clang-built-linux, LKML, Bjorn Andersson

On Mon, Jun 8, 2020 at 2:38 AM kernel test robot <lkp@intel.com> wrote:
>
> Hi Baolin,
>
> First bad commit (maybe != root cause):
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
> head:   3b69e8b4571125bec1f77f886174fe6cab6b9d75
> commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
> date:   2 months ago
> config: arm-randconfig-r001-20200607 (attached as .config)
> compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project e429cffd4f228f70c1d9df0e5d77c08590dd9766)
> 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 arm cross compiling tool for clang build
>         # apt-get install binutils-arm-linux-gnueabi
>         git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
>         # save the attached .config to linux build tree
>         COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
>
> 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 >>, old ones prefixed by <<):
>
> >> drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
> static const struct of_device_id sirf_hwpinlock_ids[] = {

In your testing configuration, the CONFIG_OF is not select, so the
macro 'of_match_ptr' becomes NULL, which triggers this waring. I think
we can remove the redundant "of_match_ptr" to fix this warning. Thanks
for your report.

> ^
> 1 warning generated.
>
> vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c
>
> cc16d664e21ef6 Wei Chen 2015-05-26  86
> cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
> cc16d664e21ef6 Wei Chen 2015-05-26  88          { .compatible = "sirf,hwspinlock", },
> cc16d664e21ef6 Wei Chen 2015-05-26  89          {},
> cc16d664e21ef6 Wei Chen 2015-05-26  90  };
> cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
> cc16d664e21ef6 Wei Chen 2015-05-26  92
>
> :::::: The code at line 87 was first introduced by commit
> :::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver
>
> :::::: TO: Wei Chen <wei.chen@csr.com>
> :::::: CC: Ohad Ben-Cohen <ohad@wizery.com>
>
> ---
> 0-DAY CI Kernel Test Service, Intel Corporation
> https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org



-- 
Baolin Wang

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
@ 2020-06-07 18:37 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-06-07 18:37 UTC (permalink / raw)
  To: Baolin Wang; +Cc: kbuild-all, clang-built-linux, linux-kernel, Bjorn Andersson

[-- Attachment #1: Type: text/plain, Size: 2178 bytes --]

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3b69e8b4571125bec1f77f886174fe6cab6b9d75
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   2 months ago
config: arm-randconfig-r001-20200607 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project e429cffd4f228f70c1d9df0e5d77c08590dd9766)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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 >>, old ones prefixed by <<):

>> drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
static const struct of_device_id sirf_hwpinlock_ids[] = {
^
1 warning generated.

vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c

cc16d664e21ef6 Wei Chen 2015-05-26  86  
cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26  88  	{ .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26  89  	{},
cc16d664e21ef6 Wei Chen 2015-05-26  90  };
cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26  92  

:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver

:::::: TO: Wei Chen <wei.chen@csr.com>
:::::: CC: Ohad Ben-Cohen <ohad@wizery.com>

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

[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 36525 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

* drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids'
@ 2020-06-07 18:37 ` kernel test robot
  0 siblings, 0 replies; 6+ messages in thread
From: kernel test robot @ 2020-06-07 18:37 UTC (permalink / raw)
  To: kbuild-all

[-- Attachment #1: Type: text/plain, Size: 2228 bytes --]

Hi Baolin,

First bad commit (maybe != root cause):

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   3b69e8b4571125bec1f77f886174fe6cab6b9d75
commit: ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725 hwspinlock: Allow drivers to be built with COMPILE_TEST
date:   2 months ago
config: arm-randconfig-r001-20200607 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project e429cffd4f228f70c1d9df0e5d77c08590dd9766)
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 arm cross compiling tool for clang build
        # apt-get install binutils-arm-linux-gnueabi
        git checkout ffd0bbfb378ecd56eac22bf932ccdbf89ac7f725
        # save the attached .config to linux build tree
        COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm 

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 >>, old ones prefixed by <<):

>> drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' [-Wunused-const-variable]
static const struct of_device_id sirf_hwpinlock_ids[] = {
^
1 warning generated.

vim +/sirf_hwpinlock_ids +87 drivers/hwspinlock/sirf_hwspinlock.c

cc16d664e21ef6 Wei Chen 2015-05-26  86  
cc16d664e21ef6 Wei Chen 2015-05-26 @87  static const struct of_device_id sirf_hwpinlock_ids[] = {
cc16d664e21ef6 Wei Chen 2015-05-26  88  	{ .compatible = "sirf,hwspinlock", },
cc16d664e21ef6 Wei Chen 2015-05-26  89  	{},
cc16d664e21ef6 Wei Chen 2015-05-26  90  };
cc16d664e21ef6 Wei Chen 2015-05-26  91  MODULE_DEVICE_TABLE(of, sirf_hwpinlock_ids);
cc16d664e21ef6 Wei Chen 2015-05-26  92  

:::::: The code at line 87 was first introduced by commit
:::::: cc16d664e21ef640faaf51e9952384cf90b92d9f hwspinlock: add a CSR atlas7 driver

:::::: TO: Wei Chen <wei.chen@csr.com>
:::::: CC: Ohad Ben-Cohen <ohad@wizery.com>

---
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: 36525 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2020-09-10 21:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-09-10 21:11 drivers/hwspinlock/sirf_hwspinlock.c:87:34: warning: unused variable 'sirf_hwpinlock_ids' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-08-09 19:07 kernel test robot
2020-08-09 19:07 ` kernel test robot
2020-06-07 18:37 kernel test robot
2020-06-07 18:37 ` kernel test robot
2020-06-08 12:07 ` Baolin Wang

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.