[agd5f:amd-staging-drm-next 541/556] drivers/spi/spi-amd.c:405:36: warning: unused variable 'spi_acpi_match'

From: kernel test robot
Date: Sat Aug 21 2021 - 22:48:38 EST


tree: https://gitlab.freedesktop.org/agd5f/linux.git amd-staging-drm-next
head: c631af5a62e497a3d1d8ace5add26ae43040c48b
commit: 76e192c35ad70a1242a65971345a5056650f35e9 [541/556] Add support for AMD SPI controller-1
config: hexagon-randconfig-r041-20210822 (attached as .config)
compiler: clang version 14.0.0 (https://github.com/llvm/llvm-project a83d99c55ebb14532c414066a5aa3bdb65389965)
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
git remote add agd5f https://gitlab.freedesktop.org/agd5f/linux.git
git fetch --no-tags agd5f amd-staging-drm-next
git checkout 76e192c35ad70a1242a65971345a5056650f35e9
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=hexagon

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All warnings (new ones prefixed by >>):

>> drivers/spi/spi-amd.c:405: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 +405 drivers/spi/spi-amd.c

bbb336f39efcb1 Sanjay R Mehta 2020-04-25 404
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 @405 static const struct acpi_device_id spi_acpi_match[] = {
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 406 { "AMDI0061", 0 },
76e192c35ad70a kunliu13 2021-08-20 407 { "AMDI0062", 0 },
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 408 {},
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 409 };
bbb336f39efcb1 Sanjay R Mehta 2020-04-25 410 MODULE_DEVICE_TABLE(acpi, spi_acpi_match);
76e192c35ad70a kunliu13 2021-08-20 411

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

:::::: TO: Sanjay R Mehta <sanju.mehta@xxxxxxx>
:::::: CC: Mark Brown <broonie@xxxxxxxxxx>

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip