tree:
https://github.com/bvanassche/linux scsi-remove-request-pointer
head: 087cdea56c1cf240c2e64d26e9a7c3231a751f14
commit: 087cdea56c1cf240c2e64d26e9a7c3231a751f14 [50/50] core: Remove the request member
from struct scsi_cmnd
config: m68k-allmodconfig (attached as .config)
compiler: m68k-linux-gcc (GCC) 9.3.0
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
#
https://github.com/bvanassche/linux/commit/087cdea56c1cf240c2e64d26e9a7c3...
git remote add bvanassche
https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-remove-request-pointer
git checkout 087cdea56c1cf240c2e64d26e9a7c3231a751f14
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross W=1 ARCH=m68k
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/ata/pata_falcon.c: In function 'pata_falcon_data_xfer':
> drivers/ata/pata_falcon.c:53:45: error: 'struct
scsi_cmnd' has no member named 'request'
53 | if (dev->class
== ATA_DEV_ATA && cmd && cmd->request &&
| ^~
drivers/ata/pata_falcon.c:54:32: error: 'struct scsi_cmnd' has no member named
'request'
54 | !blk_rq_is_passthrough(cmd->request))
| ^~
vim +53 drivers/ata/pata_falcon.c
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 41
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 42 static unsigned int
pata_falcon_data_xfer(struct ata_queued_cmd *qc,
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 43 unsigned char *buf,
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 44 unsigned int buflen, int
rw)
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 45 {
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 46 struct ata_device *dev =
qc->dev;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 47 struct ata_port *ap =
dev->link->ap;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 48 void __iomem *data_addr =
ap->ioaddr.data_addr;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 49 unsigned int words = buflen
>> 1;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 50 struct scsi_cmnd *cmd =
qc->scsicmd;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 51 bool swap = 1;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 52
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 @53 if (dev->class == ATA_DEV_ATA
&& cmd && cmd->request &&
79f4d1d5c0d7d1 Linus Torvalds 2017-02-21 54
!blk_rq_is_passthrough(cmd->request))
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 55 swap = 0;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 56
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 57 /* Transfer multiple of 2 bytes
*/
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 58 if (rw == READ) {
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 59 if (swap)
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 60 raw_insw_swapw((u16
*)data_addr, (u16 *)buf, words);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 61 else
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 62 raw_insw((u16 *)data_addr,
(u16 *)buf, words);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 63 } else {
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 64 if (swap)
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 65 raw_outsw_swapw((u16
*)data_addr, (u16 *)buf, words);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 66 else
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 67 raw_outsw((u16 *)data_addr,
(u16 *)buf, words);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 68 }
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 69
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 70 /* Transfer trailing byte, if
any. */
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 71 if (unlikely(buflen & 0x01))
{
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 72 unsigned char pad[2] = { };
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 73
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 74 /* Point buf to the tail of
buffer */
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 75 buf += buflen - 1;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 76
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 77 if (rw == READ) {
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 78 if (swap)
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 79 raw_insw_swapw((u16
*)data_addr, (u16 *)pad, 1);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 80 else
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 81 raw_insw((u16 *)data_addr,
(u16 *)pad, 1);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 82 *buf = pad[0];
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 83 } else {
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 84 pad[0] = *buf;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 85 if (swap)
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 86 raw_outsw_swapw((u16
*)data_addr, (u16 *)pad, 1);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 87 else
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 88 raw_outsw((u16 *)data_addr,
(u16 *)pad, 1);
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 89 }
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 90 words++;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 91 }
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 92
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 93 return words << 1;
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 94 }
7e11aabd48eb00 Bartlomiej Zolnierkiewicz 2016-12-30 95
:::::: The code at line 53 was first introduced by commit
:::::: 7e11aabd48eb00240b280bf927cba9198664dcf6 ata: add Atari Falcon PATA controller
driver
:::::: TO: Bartlomiej Zolnierkiewicz <b.zolnierkie(a)samsung.com>
:::::: CC: Tejun Heo <tj(a)kernel.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org