drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
From: kernel test robot
Date: Tue Sep 29 2020 - 10:37:15 EST
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@xxxxxxxxx>
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@xxxxxxxxxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx
Attachment:
.config.gz
Description: application/gzip