tree:
https://github.com/bvanassche/linux scsi-status
head: 7683aa7aa8211491779c9fba302adb691a80b08a
commit: 87c32e7e1cf663904d348a5b1ce8d6d4f015967d [11/37] ide: Inline struct scsi_request
into struct ide_request
config: x86_64-randconfig-a014-20210411 (attached as .config)
compiler: clang version 13.0.0 (
https://github.com/llvm/llvm-project
9829f5e6b1bca9b61efc629770d28bb9014dec45)
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 x86_64 cross compiling tool for clang build
# apt-get install binutils-x86-64-linux-gnu
#
https://github.com/bvanassche/linux/commit/87c32e7e1cf663904d348a5b1ce8d6...
git remote add bvanassche
https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-status
git checkout 87c32e7e1cf663904d348a5b1ce8d6d4f015967d
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross ARCH=x86_64
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/ide/ide-floppy_ioctl.c:294:41: error: use of undeclared
identifier 'SCSI_IOCTL_SEND_COMMAND'
if (cmd != CDROM_SEND_PACKET
&& cmd != SCSI_IOCTL_SEND_COMMAND)
^
drivers/ide/ide-floppy_ioctl.c:327:41: error: use of undeclared identifier
'SCSI_IOCTL_SEND_COMMAND'
if (cmd != CDROM_SEND_PACKET && cmd != SCSI_IOCTL_SEND_COMMAND)
^
2 errors generated.
vim +/SCSI_IOCTL_SEND_COMMAND +294 drivers/ide/ide-floppy_ioctl.c
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 272
badf8082c33d18 Al Viro 2008-10-16 273 int ide_floppy_ioctl(ide_drive_t
*drive, struct block_device *bdev,
badf8082c33d18 Al Viro 2008-10-16 274 fmode_t mode, unsigned
int cmd, unsigned long arg)
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 275 {
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 276 struct ide_atapi_pc pc;
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 277 void __user *argp = (void
__user *)arg;
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 278 int err;
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 279
2a48fc0ab24241 Arnd Bergmann 2010-06-02 280
mutex_lock(&ide_floppy_ioctl_mutex);
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 281 if (cmd == CDROMEJECT || cmd ==
CDROM_LOCKDOOR) {
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 282 err =
ide_floppy_lockdoor(drive, &pc, arg, cmd);
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 283 goto out;
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 284 }
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 285
07bd3f4731f9c7 Linus Torvalds 2009-01-02 286 err =
ide_floppy_format_ioctl(drive, &pc, mode, cmd, argp);
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 287 if (err != -ENOTTY)
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 288 goto out;
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 289
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 290 /*
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 291 * skip SCSI_IOCTL_SEND_COMMAND
(deprecated)
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 292 * and CDROM_SEND_PACKET
(legacy) ioctls
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 293 */
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 @294 if (cmd != CDROM_SEND_PACKET
&& cmd != SCSI_IOCTL_SEND_COMMAND)
577ebb374c7831 Paolo Bonzini 2012-01-12 295 err = scsi_cmd_blk_ioctl(bdev,
mode, cmd, argp);
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 296
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 297 if (err == -ENOTTY)
1bddd9e6453ef1 Al Viro 2008-09-02 298 err = generic_ide_ioctl(drive,
bdev, cmd, arg);
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 299
8a6cfeb6deca3a Arnd Bergmann 2010-07-08 300 out:
2a48fc0ab24241 Arnd Bergmann 2010-06-02 301
mutex_unlock(&ide_floppy_ioctl_mutex);
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 302 return err;
5bb1536a07cca0 Bartlomiej Zolnierkiewicz 2008-10-13 303 }
c103d6ee69f93e Arnd Bergmann 2019-03-15 304
:::::: The code at line 294 was first introduced by commit
:::::: 5bb1536a07cca0b66f2bb41dfdf84140939b8f1f ide-floppy: move all ioctl handling to
ide-floppy_ioctl.c (take 2)
:::::: TO: Bartlomiej Zolnierkiewicz <bzolnier(a)gmail.com>
:::::: CC: Bartlomiej Zolnierkiewicz <bzolnier(a)gmail.com>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org