tree:
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git queue-5.4
head: d2c5af89e80c5b71f1da59879464a930947306a2
commit: 066f5c8dc4f58c8cc3b6361333440249560dc526 [87/132] scsi: sd: Allow user to
configure command retries
config: arm-randconfig-r023-20210318 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
436c6c9c20cc522c92a923440a5fc509c342a7db)
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 arm cross compiling tool for clang build
# apt-get install binutils-arm-linux-gnueabi
#
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git/c...
git remote add sashal-linux-stable
https://git.kernel.org/pub/scm/linux/kernel/git/sashal/linux-stable.git
git fetch --no-tags sashal-linux-stable queue-5.4
git checkout 066f5c8dc4f58c8cc3b6361333440249560dc526
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=arm
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp(a)intel.com>
All errors (new ones prefixed by >>):
> drivers/scsi/sd.c:560:17: error: use of undeclared identifier
'SCSI_CMD_RETRIES_NO_LIMIT'
if (retries ==
SCSI_CMD_RETRIES_NO_LIMIT || retries <= SD_MAX_RETRIES) {
^
1 error generated.
vim +/SCSI_CMD_RETRIES_NO_LIMIT +560 drivers/scsi/sd.c
547
548 static ssize_t
549 max_retries_store(struct device *dev, struct device_attribute *attr,
550 const char *buf, size_t count)
551 {
552 struct scsi_disk *sdkp = to_scsi_disk(dev);
553 struct scsi_device *sdev = sdkp->device;
554 int retries, err;
555
556 err = kstrtoint(buf, 10, &retries);
557 if (err)
558 return err;
559
560 if (retries == SCSI_CMD_RETRIES_NO_LIMIT || retries <=
SD_MAX_RETRIES) {
561 sdkp->max_retries = retries;
562 return count;
563 }
564
565 sdev_printk(KERN_ERR, sdev, "max_retries must be between -1 and %d\n",
566 SD_MAX_RETRIES);
567 return -EINVAL;
568 }
569
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org