From: kernel test robot <lkp@intel.com>
To: Geert Uytterhoeven <geert+renesas@glider.be>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>
Subject: drivers/spi/spi-rspi.c:1128:29: warning: unused variable 'rspi_rz_ops'
Date: Wed, 28 Oct 2020 07:04:00 +0800 [thread overview]
Message-ID: <202010280754.OCIb38zK-lkp@intel.com> (raw)
[-- 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 --]
next reply other threads:[~2020-10-27 23:04 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-27 23:04 kernel test robot [this message]
-- 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
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=202010280754.OCIb38zK-lkp@intel.com \
--to=lkp@intel.com \
--cc=broonie@kernel.org \
--cc=clang-built-linux@googlegroups.com \
--cc=geert+renesas@glider.be \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/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