From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: oe-kbuild-all@lists.linux.dev, linux-kernel@vger.kernel.org,
Mark Brown <broonie@kernel.org>
Subject: drivers/spi/spi-rspi.c:1136:29: warning: 'qspi_ops' defined but not used
Date: Mon, 20 Feb 2023 16:05:03 +0800 [thread overview]
Message-ID: <202302201551.l6HP3T7S-lkp@intel.com> (raw)
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@intel.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@linux-m68k.org>
:::::: CC: Mark Brown <broonie@linaro.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests
reply other threads:[~2023-02-20 8:05 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202302201551.l6HP3T7S-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=geert+renesas@glider.be \
--cc=linux-kernel@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
Powered by JetHome