From: kbuild test robot <lkp@intel.com>
To: Chris Packham <chris.packham@alliedtelesis.co.nz>
Cc: kbuild-all@lists.01.org, clang-built-linux@googlegroups.com,
linux-kernel@vger.kernel.org, Mark Brown <broonie@kernel.org>,
Andy Shevchenko <andy.shevchenko@gmail.com>
Subject: drivers/mux/adgs1408.c:112:34: warning: unused variable 'adgs1408_of_match'
Date: Wed, 20 May 2020 10:22:45 +0800 [thread overview]
Message-ID: <202005201042.yjSO10j2%lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2618 bytes --]
Hi Chris,
First bad commit (maybe != root cause):
tree: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git master
head: 115a54162a6c0d0ef2aef25ebd0b61fc5e179ebe
commit: e9e40543ad5b38b848879768359fd13650529961 spi: Add generic SPI multiplexer
date: 3 months ago
config: x86_64-randconfig-r022-20200519 (attached as .config)
compiler: clang version 11.0.0 (https://github.com/llvm/llvm-project 135b877874fae96b4372c8a3fbfaa8ff44ff86e3)
reproduce:
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 e9e40543ad5b38b848879768359fd13650529961
# 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: kbuild test robot <lkp@intel.com>
All warnings (new ones prefixed by >>, old ones prefixed by <<):
drivers/mux/adgs1408.c:62:12: warning: cast to smaller integer type 'enum adgs1408_chip_id' from 'const void *' [-Wvoid-pointer-to-enum-cast]
chip_id = (enum adgs1408_chip_id)of_device_get_match_data(dev);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> drivers/mux/adgs1408.c:112:34: warning: unused variable 'adgs1408_of_match' [-Wunused-const-variable]
static const struct of_device_id adgs1408_of_match[] = {
^
2 warnings generated.
vim +/adgs1408_of_match +112 drivers/mux/adgs1408.c
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 111
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 @112 static const struct of_device_id adgs1408_of_match[] = {
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 113 { .compatible = "adi,adgs1408", .data = (void *)ADGS1408, },
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 114 { .compatible = "adi,adgs1409", .data = (void *)ADGS1409, },
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 115 { }
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 116 };
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 117 MODULE_DEVICE_TABLE(of, adgs1408_of_match);
8b9ce6954c05e3 Mircea Caprioru 2018-08-01 118
:::::: The code at line 112 was first introduced by commit
:::::: 8b9ce6954c05e3e4115f54444c7eaf2aa2dd5e65 mux: adgs1408: new driver for Analog Devices ADGS1408/1409 mux
:::::: TO: Mircea Caprioru <mircea.caprioru@analog.com>
:::::: CC: Greg Kroah-Hartman <gregkh@linuxfoundation.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: 39685 bytes --]
next reply other threads:[~2020-05-20 2:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-05-20 2:22 kbuild test robot [this message]
2020-05-20 12:03 ` Andy Shevchenko
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=202005201042.yjSO10j2%lkp@intel.com \
--to=lkp@intel.com \
--cc=andy.shevchenko@gmail.com \
--cc=broonie@kernel.org \
--cc=chris.packham@alliedtelesis.co.nz \
--cc=clang-built-linux@googlegroups.com \
--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