[<prev] [next>] [day] [month] [year] [list]
Message-ID: <202302201551.l6HP3T7S-lkp@intel.com>
Date: Mon, 20 Feb 2023 16:05:03 +0800
From: kernel test robot <lkp@...el.com>
To: Geert Uytterhoeven <geert+renesas@...der.be>
Cc: oe-kbuild-all@...ts.linux.dev, linux-kernel@...r.kernel.org,
Mark Brown <broonie@...nel.org>
Subject: drivers/spi/spi-rspi.c:1136:29: warning: 'qspi_ops' defined but not
used
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: c9c3395d5e3dcc6daee66c6908354d47bf98cb0c
commit: 851c902fd2d09b2ed85181e74b43477b7a3882be spi: rspi: Remove obsolete platform_device_id entries
date: 3 years, 2 months ago
config: x86_64-buildonly-randconfig-r004-20230220 (https://download.01.org/0day-ci/archive/20230220/202302201551.l6HP3T7S-lkp@intel.com/config)
compiler: gcc-11 (Debian 11.3.0-8) 11.3.0
reproduce (this is a W=1 build):
# 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 config file
mkdir build_dir && cp config build_dir/.config
make W=1 O=build_dir ARCH=x86_64 olddefconfig
make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/clk/imx/ drivers/hwspinlock/ drivers/mmc/host/ drivers/spi/ drivers/usb/phy/
If you fix the issue, kindly add following tag where applicable
| Reported-by: kernel test robot <lkp@...el.com>
| Link: https://lore.kernel.org/oe-kbuild-all/202302201551.l6HP3T7S-lkp@intel.com/
All warnings (new ones prefixed by >>):
>> drivers/spi/spi-rspi.c:1136:29: warning: 'qspi_ops' defined but not used [-Wunused-const-variable=]
1136 | static const struct spi_ops qspi_ops = {
| ^~~~~~~~
>> drivers/spi/spi-rspi.c:1128:29: warning: 'rspi_rz_ops' defined but not used [-Wunused-const-variable=]
1128 | static const struct spi_ops rspi_rz_ops = {
| ^~~~~~~~~~~
vim +/qspi_ops +1136 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 1136 was first introduced by commit
:::::: 426ef76dd8a394a0e04d096941cd9acb49539a3e spi: rspi: Add DT support
:::::: TO: Geert Uytterhoeven <geert+renesas@...ux-m68k.org>
:::::: CC: Mark Brown <broonie@...aro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
Powered by blists - more mailing lists