Re: [PATCH 9/9] spi: amd: Add support for latest platform

From: kernel test robot
Date: Tue Aug 24 2021 - 11:46:17 EST

Hi Lucas,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on spi/for-next]
[also build test WARNING on regmap/for-next driver-core/driver-core-testing v5.14-rc7 next-20210824]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in]

base: for-next
config: riscv-randconfig-c006-20210824 (attached as .config)
compiler: clang version 14.0.0 ( d26000e4cc2bc65e207a84fa26cb6e374d60aa12)
reproduce (this is a W=1 build):
wget -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 linux-review
git fetch --no-tags linux-review Lucas-Tanure/Improve-support-for-AMD-SPI-controllers/20210824-184257
git checkout ac75baf94633bf8c290e7fc90ecb84957cb602a9
# save the attached .config to linux build tree

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:390:42: warning: unused variable 'spi_v1' [-Wunused-const-variable]
static const struct amd_spi_devtype_data spi_v1 = {
>> drivers/spi/spi-amd.c:395:42: warning: unused variable 'spi_v2' [-Wunused-const-variable]
static const struct amd_spi_devtype_data spi_v2 = {
2 warnings generated.

vim +/spi_v1 +390 drivers/spi/spi-amd.c

> 390 static const struct amd_spi_devtype_data spi_v1 = {
391 .exec_op = amd_spi_execute_opcode_v1,
392 .set_op = amd_spi_set_opcode_v1,
393 };
> 395 static const struct amd_spi_devtype_data spi_v2 = {
396 .version = 1,
397 .exec_op = amd_spi_execute_opcode_v2,
398 .set_op = amd_spi_set_opcode_v2,
399 };

0-DAY CI Kernel Test Service, Intel Corporation

Attachment: .config.gz
Description: application/gzip