[agd5f:amd-staging-drm-next 1776/2357] drivers/spi/spi-amd.c:353:36: warning: unused variable 'spi_acpi_match'

0 views
Skip to first unread message

kernel test robot

unread,
Apr 16, 2021, 12:01:23 AM4/16/21
to Nehal Bakulchandra Shah, kbuil...@lists.01.org, clang-bu...@googlegroups.com, Alex Deucher, Liang Liang
Hi Nehal,

FYI, the error/warning still remains.

tree: https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: b54280b32ebb9381e045e645eabd99dbbe607ec2
commit: 37b635b47124cbdf32981150b2a950cb0153c756 [1776/2357] Add support for AMD SPI controller-1 (v2)
config: riscv-randconfig-r011-20210415 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 6a18cc23efad410db48a3ccfc233d215de7d4cb9)
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 riscv cross compiling tool for clang build
# apt-get install binutils-riscv64-linux-gnu
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f amd-staging-drm-next
git checkout 37b635b47124cbdf32981150b2a950cb0153c756
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=riscv

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <l...@intel.com>

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-amd.c:353:36: warning: unused variable 'spi_acpi_match' [-Wunused-const-variable]
static const struct acpi_device_id spi_acpi_match[] = {
^
1 warning generated.


vim +/spi_acpi_match +353 drivers/spi/spi-amd.c

bbb336f39efcb1 Sanjay R Mehta 2020-04-25 352
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 @353 static const struct acpi_device_id spi_acpi_match[] = {
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 354 { "AMDI0061", 0 },
37b635b47124cb Nehal Bakulchandra Shah 2021-01-26 355 { "AMDI0062", 0 },
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 356 {},
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 357 };
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 358 MODULE_DEVICE_TABLE(acpi, spi_acpi_match);
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 359

:::::: The code at line 353 was first introduced by commit
:::::: bbb336f39efcb1b5498f65f59f9af5773ad6dc2b spi: spi-amd: Add AMD SPI controller driver support

:::::: TO: Sanjay R Mehta <sanju...@amd.com>
:::::: CC: Mark Brown <bro...@kernel.org>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuil...@lists.01.org
.config.gz
Reply all
Reply to author
Forward
0 new messages