Re: [PATCH] spi: spi-fsl-dspi: Add ACPI support

From: kernel test robot
Date: Fri Aug 21 2020 - 12:51:46 EST


Hi kuldip,

Thank you for the patch! Perhaps something to improve:

[auto build test WARNING on spi/for-next]
[also build test WARNING on v5.9-rc1 next-20200821]
[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
https://git-scm.com/docs/git-format-patch]

url: https://github.com/0day-ci/linux/commits/kuldip-dwivedi/spi-spi-fsl-dspi-Add-ACPI-support/20200821-211355
base: https://git.kernel.org/pub/scm/linux/kernel/git/broonie/spi.git for-next
config: arm64-randconfig-r006-20200820 (attached as .config)
compiler: clang version 12.0.0 (https://github.com/llvm/llvm-project b587ca93be114d07ec3bf654add97d7872325281)
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 arm64 cross compiling tool for clang build
# apt-get install binutils-aarch64-linux-gnu
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm64

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-fsl-dspi.c:1075:36: warning: unused variable 'fsl_dspi_acpi_ids' [-Wunused-const-variable]
static const struct acpi_device_id fsl_dspi_acpi_ids[] = {
^
1 warning generated.

# https://github.com/0day-ci/linux/commit/00b7c46d88c9150bd8225fce2b7b95e186514e10
git remote add linux-review https://github.com/0day-ci/linux
git fetch --no-tags linux-review kuldip-dwivedi/spi-spi-fsl-dspi-Add-ACPI-support/20200821-211355
git checkout 00b7c46d88c9150bd8225fce2b7b95e186514e10
vim +/fsl_dspi_acpi_ids +1075 drivers/spi/spi-fsl-dspi.c

1074
> 1075 static const struct acpi_device_id fsl_dspi_acpi_ids[] = {
1076 { "NXP0005", .driver_data = (kernel_ulong_t)&devtype_data[LS2085A], },
1077 {},
1078 };
1079 MODULE_DEVICE_TABLE(acpi, fsl_dspi_acpi_ids);
1080

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

Attachment: .config.gz
Description: application/gzip