linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
@ 2020-10-27 23:04 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-10-27 23:04 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

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

Hi Geert,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   4d09c1d952679411da2772f199643e08c46c31cd
commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries
date:   11 months ago
config: x86_64-randconfig-a003-20201028 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project f2c25c70791de95d2466e09b5b58fc37f6ccd7a4)
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=851c902fd2d09b2ed85181e74b43477b7a3882be
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 851c902fd2d09b2ed85181e74b43477b7a3882be
        # 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/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops' [-Wunused-const-variable]
   static const struct spi_ops rspi_rz_ops = {
                               ^
>> drivers/spi/spi-rspi.c:1136:29: warning: unused variable 'qspi_ops' [-Wunused-const-variable]
   static const struct spi_ops qspi_ops = {
                               ^
   2 warnings generated.

vim +/rspi_rz_ops +1128 drivers/spi/spi-rspi.c

426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1127  
426ef76dd8a394a Geert Uytterhoeven 2014-01-28 @1128  static const struct spi_ops rspi_rz_ops = {
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1129  	.set_config_register =	rspi_rz_set_config_register,
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1130  	.transfer_one =		rspi_rz_transfer_one,
880c6d114fd79a6 Geert Uytterhoeven 2014-01-30  1131  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP,
9428a073eb703de Geert Uytterhoeven 2019-02-08  1132  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa0623 Geert Uytterhoeven 2014-06-02  1133  	.fifo_size =		8,	/* 8 for TX, 32 for RX */
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1134  };
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1135  
426ef76dd8a394a Geert Uytterhoeven 2014-01-28 @1136  static const struct spi_ops qspi_ops = {
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1137  	.set_config_register =	qspi_set_config_register,
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1138  	.transfer_one =		qspi_transfer_one,
880c6d114fd79a6 Geert Uytterhoeven 2014-01-30  1139  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP |
880c6d114fd79a6 Geert Uytterhoeven 2014-01-30  1140  				SPI_TX_DUAL | SPI_TX_QUAD |
880c6d114fd79a6 Geert Uytterhoeven 2014-01-30  1141  				SPI_RX_DUAL | SPI_RX_QUAD,
9428a073eb703de Geert Uytterhoeven 2019-02-08  1142  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa0623 Geert Uytterhoeven 2014-06-02  1143  	.fifo_size =		32,
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1144  };
426ef76dd8a394a Geert Uytterhoeven 2014-01-28  1145  

:::::: The code at line 1128 was first introduced by commit
:::::: 426ef76dd8a394a0e04d096941cd9acb49539a3e spi: rspi: Add DT support

:::::: TO: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
:::::: CC: Mark Brown <broonie@linaro.org>

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

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

* drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
@ 2020-09-29 14:36 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-09-29 14:36 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

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

Hi Geert,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   fb0155a09b0224a7147cb07a4ce6034c8d29667f
commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries
date:   10 months ago
config: x86_64-randconfig-r036-20200929 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 6d374cf78c8a80a0bbfc7ce9bc80b3f183f44c80)
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=851c902fd2d09b2ed85181e74b43477b7a3882be
        git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
        git fetch --no-tags linus master
        git checkout 851c902fd2d09b2ed85181e74b43477b7a3882be
        # 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/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops' [-Wunused-const-variable]
   static const struct spi_ops rspi_rz_ops = {
                               ^
>> drivers/spi/spi-rspi.c:1136:29: warning: unused variable 'qspi_ops' [-Wunused-const-variable]
   static const struct spi_ops qspi_ops = {
                               ^
   2 warnings generated.

vim +/rspi_rz_ops +1128 drivers/spi/spi-rspi.c

426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1127  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1128  static const struct spi_ops rspi_rz_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1129  	.set_config_register =	rspi_rz_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1130  	.transfer_one =		rspi_rz_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1131  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1132  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1133  	.fifo_size =		8,	/* 8 for TX, 32 for RX */
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1134  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1135  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1136  static const struct spi_ops qspi_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1137  	.set_config_register =	qspi_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1138  	.transfer_one =		qspi_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1139  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1140  				SPI_TX_DUAL | SPI_TX_QUAD |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1141  				SPI_RX_DUAL | SPI_RX_QUAD,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1142  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1143  	.fifo_size =		32,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1144  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1145  

:::::: The code at line 1128 was first introduced by commit
:::::: 426ef76dd8a394a0e04d096941cd9acb49539a3e spi: rspi: Add DT support

:::::: TO: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
:::::: CC: Mark Brown <broonie@linaro.org>

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

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

* drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
@ 2020-09-09  2:12 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-09-09  2:12 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

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

Hi Geert,

FYI, the error/warning still remains.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   34d4ddd359dbcdf6c5fb3f85a179243d7a1cb7f8
commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries
date:   9 months ago
config: x86_64-randconfig-a016-20200909 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project df63eedef64d715ce1f31843f7de9c11fe1e597f)
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 851c902fd2d09b2ed85181e74b43477b7a3882be
        # 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/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops' [-Wunused-const-variable]
   static const struct spi_ops rspi_rz_ops = {
                               ^
>> drivers/spi/spi-rspi.c:1136:29: warning: unused variable 'qspi_ops' [-Wunused-const-variable]
   static const struct spi_ops qspi_ops = {
                               ^
   2 warnings generated.

# https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=851c902fd2d09b2ed85181e74b43477b7a3882be
git remote add linus https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
git fetch --no-tags linus master
git checkout 851c902fd2d09b2ed85181e74b43477b7a3882be
vim +/rspi_rz_ops +1128 drivers/spi/spi-rspi.c

426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1127  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1128  static const struct spi_ops rspi_rz_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1129  	.set_config_register =	rspi_rz_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1130  	.transfer_one =		rspi_rz_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1131  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1132  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1133  	.fifo_size =		8,	/* 8 for TX, 32 for RX */
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1134  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1135  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1136  static const struct spi_ops qspi_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1137  	.set_config_register =	qspi_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1138  	.transfer_one =		qspi_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1139  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1140  				SPI_TX_DUAL | SPI_TX_QUAD |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1141  				SPI_RX_DUAL | SPI_RX_QUAD,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1142  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1143  	.fifo_size =		32,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1144  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1145  

:::::: The code at line 1128 was first introduced by commit
:::::: 426ef76dd8a394a0e04d096941cd9acb49539a3e spi: rspi: Add DT support

:::::: TO: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
:::::: CC: Mark Brown <broonie@linaro.org>

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

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

* drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
@ 2020-07-23  1:35 kernel test robot
  0 siblings, 0 replies; 4+ messages in thread
From: kernel test robot @ 2020-07-23  1:35 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: kbuild-all, clang-built-linux, linux-kernel, Mark Brown

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

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head:   8c26c87b05323a7ccdc632820b85253e0bf47fd9
commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries
date:   7 months ago
config: x86_64-randconfig-a013-20200723 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project 3d9967039d4191b77f939ddc6c6ff4275df620c2)
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 851c902fd2d09b2ed85181e74b43477b7a3882be
        # 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/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops' [-Wunused-const-variable]
   static const struct spi_ops rspi_rz_ops = {
                               ^
>> drivers/spi/spi-rspi.c:1136:29: warning: unused variable 'qspi_ops' [-Wunused-const-variable]
   static const struct spi_ops qspi_ops = {
                               ^
   2 warnings generated.

vim +/rspi_rz_ops +1128 drivers/spi/spi-rspi.c

426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1127  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1128  static const struct spi_ops rspi_rz_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1129  	.set_config_register =	rspi_rz_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1130  	.transfer_one =		rspi_rz_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1131  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1132  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1133  	.fifo_size =		8,	/* 8 for TX, 32 for RX */
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1134  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1135  
426ef76dd8a394 Geert Uytterhoeven 2014-01-28 @1136  static const struct spi_ops qspi_ops = {
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1137  	.set_config_register =	qspi_set_config_register,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1138  	.transfer_one =		qspi_transfer_one,
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1139  	.mode_bits =		SPI_CPHA | SPI_CPOL | SPI_LOOP |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1140  				SPI_TX_DUAL | SPI_TX_QUAD |
880c6d114fd79a Geert Uytterhoeven 2014-01-30  1141  				SPI_RX_DUAL | SPI_RX_QUAD,
9428a073eb703d Geert Uytterhoeven 2019-02-08  1142  	.flags =		SPI_CONTROLLER_MUST_RX | SPI_CONTROLLER_MUST_TX,
2f777ec91aa062 Geert Uytterhoeven 2014-06-02  1143  	.fifo_size =		32,
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1144  };
426ef76dd8a394 Geert Uytterhoeven 2014-01-28  1145  

:::::: The code at line 1128 was first introduced by commit
:::::: 426ef76dd8a394a0e04d096941cd9acb49539a3e spi: rspi: Add DT support

:::::: TO: Geert Uytterhoeven <geert+renesas@linux-m68k.org>
:::::: CC: Mark Brown <broonie@linaro.org>

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

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

end of thread, other threads:[~2020-10-27 23:04 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-27 23:04 drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops' kernel test robot
  -- strict thread matches above, loose matches on Subject: below --
2020-09-29 14:36 kernel test robot
2020-09-09  2:12 kernel test robot
2020-07-23  1:35 kernel test robot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).