* [bvanassche:scsi-remove-request-pointer 3/3] drivers/target/loopback/tcm_loop.c:186:27: error: no member named 'request' in 'struct scsi_cmnd'
@ 2021-04-29 7:11 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2021-04-29 7:11 UTC (permalink / raw)
To: kbuild-all
[-- Attachment #1: Type: text/plain, Size: 3880 bytes --]
tree: https://github.com/bvanassche/linux scsi-remove-request-pointer
head: dd3305723bb965275fc85a46c47dc650589c2b57
commit: dd3305723bb965275fc85a46c47dc650589c2b57 [3/3] Remove the request member from struct scsi_cmnd
config: x86_64-randconfig-a004-20210428 (attached as .config)
compiler: clang version 13.0.0 (https://github.com/llvm/llvm-project 9131a078901b00e68248a27a4f8c4b11bb1db1ae)
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/dd3305723bb965275fc85a46c47dc650589c2b57
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-remove-request-pointer
git checkout dd3305723bb965275fc85a46c47dc650589c2b57
# save the attached .config to linux build tree
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=clang make.cross W=1 ARCH=x86_64
If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@intel.com>
All errors (new ones prefixed by >>):
>> drivers/target/loopback/tcm_loop.c:186:27: error: no member named 'request' in 'struct scsi_cmnd'
tl_cmd->sc_cmd_tag = sc->request->tag;
~~ ^
drivers/target/loopback/tcm_loop.c:252:10: error: no member named 'request' in 'struct scsi_cmnd'
sc->request->tag, TMR_ABORT_TASK);
~~ ^
2 errors generated.
vim +186 drivers/target/loopback/tcm_loop.c
afe2cb7fb111ac Christoph Hellwig 2012-02-02 170
afe2cb7fb111ac Christoph Hellwig 2012-02-02 171 /*
afe2cb7fb111ac Christoph Hellwig 2012-02-02 172 * ->queuecommand can be and usually is called from interrupt context, so
afe2cb7fb111ac Christoph Hellwig 2012-02-02 173 * defer the actual submission to a workqueue.
afe2cb7fb111ac Christoph Hellwig 2012-02-02 174 */
afe2cb7fb111ac Christoph Hellwig 2012-02-02 175 static int tcm_loop_queuecommand(struct Scsi_Host *sh, struct scsi_cmnd *sc)
afe2cb7fb111ac Christoph Hellwig 2012-02-02 176 {
e0eb5d38b732b0 Mike Christie 2021-02-27 177 struct tcm_loop_cmd *tl_cmd = scsi_cmd_priv(sc);
afe2cb7fb111ac Christoph Hellwig 2012-02-02 178
c8d1f4b76be336 Markus Elfring 2017-12-11 179 pr_debug("%s() %d:%d:%d:%llu got CDB: 0x%02x scsi_buf_len: %u\n",
c8d1f4b76be336 Markus Elfring 2017-12-11 180 __func__, sc->device->host->host_no, sc->device->id,
c8d1f4b76be336 Markus Elfring 2017-12-11 181 sc->device->channel, sc->device->lun, sc->cmnd[0],
c8d1f4b76be336 Markus Elfring 2017-12-11 182 scsi_bufflen(sc));
afe2cb7fb111ac Christoph Hellwig 2012-02-02 183
e0eb5d38b732b0 Mike Christie 2021-02-27 184 memset(tl_cmd, 0, sizeof(*tl_cmd));
afe2cb7fb111ac Christoph Hellwig 2012-02-02 185 tl_cmd->sc = sc;
6375f8908255ea Hannes Reinecke 2014-10-02 @186 tl_cmd->sc_cmd_tag = sc->request->tag;
1130b499b4a74b Mike Christie 2021-02-27 187
1130b499b4a74b Mike Christie 2021-02-27 188 tcm_loop_target_queue_cmd(tl_cmd);
f872c9f417a38a Christoph Hellwig 2012-02-02 189 return 0;
3703b2c5d041a6 Nicholas Bellinger 2011-03-18 190 }
3703b2c5d041a6 Nicholas Bellinger 2011-03-18 191
:::::: The code at line 186 was first introduced by commit
:::::: 6375f8908255ea7438b60bb5998e6b3e1628500d tcm_loop: Fixup tag handling
:::::: TO: Hannes Reinecke <hare@suse.de>
:::::: CC: Nicholas Bellinger <nab@linux-iscsi.org>
---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all(a)lists.01.org
[-- Attachment #2: config.gz --]
[-- Type: application/gzip, Size: 31457 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-04-29 7:11 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-04-29 7:11 [bvanassche:scsi-remove-request-pointer 3/3] drivers/target/loopback/tcm_loop.c:186:27: error: no member named 'request' in 'struct scsi_cmnd' kernel test robot
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.