[bvanassche:scsi-remove-request-pointer 51/51] drivers/scsi/lpfc/lpfc_scsi.c:5428:9: error: 'struct scsi_cmnd' has no member named 'request'

From: kernel test robot
Date: Fri Jul 09 2021 - 22:18:10 EST


tree: https://github.com/bvanassche/linux scsi-remove-request-pointer
head: 2fab108311c3945a49c45df8859e5c517923577d
commit: 2fab108311c3945a49c45df8859e5c517923577d [51/51] core: Remove the request member from struct scsi_cmnd
config: arm-buildonly-randconfig-r002-20210709 (attached as .config)
compiler: arm-linux-gnueabi-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/2fab108311c3945a49c45df8859e5c517923577d
git remote add bvanassche https://github.com/bvanassche/linux
git fetch --no-tags bvanassche scsi-remove-request-pointer
git checkout 2fab108311c3945a49c45df8859e5c517923577d
# save the attached .config to linux build tree
mkdir build_dir
COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-9.3.0 make.cross O=build_dir ARCH=arm SHELL=/bin/bash drivers/scsi/lpfc/

If you fix the issue, kindly add following tag as appropriate
Reported-by: kernel test robot <lkp@xxxxxxxxx>

All errors (new ones prefixed by >>):

drivers/scsi/lpfc/lpfc_scsi.c: In function 'lpfc_is_command_vm_io':
>> drivers/scsi/lpfc/lpfc_scsi.c:5428:9: error: 'struct scsi_cmnd' has no member named 'request'
5428 | if (cmd->request) {
| ^~
drivers/scsi/lpfc/lpfc_scsi.c:5429:10: error: 'struct scsi_cmnd' has no member named 'request'
5429 | if (cmd->request->bio)
| ^~
drivers/scsi/lpfc/lpfc_scsi.c:5430:33: error: 'struct scsi_cmnd' has no member named 'request'
5430 | uuid = blkcg_get_fc_appid(cmd->request->bio);
| ^~


vim +5428 drivers/scsi/lpfc/lpfc_scsi.c

33c79741deaf09 Gaurav Srivastava 2021-06-08 5418
33c79741deaf09 Gaurav Srivastava 2021-06-08 5419 /*
33c79741deaf09 Gaurav Srivastava 2021-06-08 5420 * lpfc_is_command_vm_io - get the UUID from blk cgroup
33c79741deaf09 Gaurav Srivastava 2021-06-08 5421 * @cmd: Pointer to scsi_cmnd data structure
33c79741deaf09 Gaurav Srivastava 2021-06-08 5422 * Returns UUID if present, otherwise NULL
33c79741deaf09 Gaurav Srivastava 2021-06-08 5423 */
33c79741deaf09 Gaurav Srivastava 2021-06-08 5424 static char *lpfc_is_command_vm_io(struct scsi_cmnd *cmd)
33c79741deaf09 Gaurav Srivastava 2021-06-08 5425 {
33c79741deaf09 Gaurav Srivastava 2021-06-08 5426 char *uuid = NULL;
33c79741deaf09 Gaurav Srivastava 2021-06-08 5427
33c79741deaf09 Gaurav Srivastava 2021-06-08 @5428 if (cmd->request) {
33c79741deaf09 Gaurav Srivastava 2021-06-08 5429 if (cmd->request->bio)
33c79741deaf09 Gaurav Srivastava 2021-06-08 5430 uuid = blkcg_get_fc_appid(cmd->request->bio);
33c79741deaf09 Gaurav Srivastava 2021-06-08 5431 }
33c79741deaf09 Gaurav Srivastava 2021-06-08 5432 return uuid;
33c79741deaf09 Gaurav Srivastava 2021-06-08 5433 }
33c79741deaf09 Gaurav Srivastava 2021-06-08 5434

:::::: The code at line 5428 was first introduced by commit
:::::: 33c79741deaf09b50d56db4b22879d9557e846df scsi: lpfc: vmid: Introduce VMID in I/O path

:::::: TO: Gaurav Srivastava <gaurav.srivastava@xxxxxxxxxxxx>
:::::: CC: Martin K. Petersen <martin.petersen@xxxxxxxxxx>

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

Attachment: .config.gz
Description: application/gzip