Messages in this thread | | | Date | Thu, 11 Nov 2021 22:51:57 +0800 | From | kernel test robot <> | Subject | [hare-scsi-devel:scsi-private.v2 3/21] drivers/scsi/fnic/fnic_main.c:123:3: error: 'struct scsi_host_template' has no member named 'nr_reserved_cmds' |
| |
tree: https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git scsi-private.v2 head: 915b986531e666d840f72752c597fb6b4ea69d35 commit: 4c6835d49046d493aa4186e6d357842ef885bd97 [3/21] fnic: use internal commands config: x86_64-kexec (attached as .config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): # https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git/commit/?id=4c6835d49046d493aa4186e6d357842ef885bd97 git remote add hare-scsi-devel https://git.kernel.org/pub/scm/linux/kernel/git/hare/scsi-devel.git git fetch --no-tags hare-scsi-devel scsi-private.v2 git checkout 4c6835d49046d493aa4186e6d357842ef885bd97 # save the attached .config to linux build tree mkdir build_dir make W=1 O=build_dir ARCH=x86_64 SHELL=/bin/bash drivers/scsi/aacraid/ drivers/scsi/fnic/
If you fix the issue, kindly add following tag as appropriate Reported-by: kernel test robot <lkp@intel.com>
All error/warnings (new ones prefixed by >>):
>> drivers/scsi/fnic/fnic_main.c:123:3: error: 'struct scsi_host_template' has no member named 'nr_reserved_cmds' 123 | .nr_reserved_cmds = 1, | ^~~~~~~~~~~~~~~~ >> drivers/scsi/fnic/fnic_main.c:123:22: warning: initialized field overwritten [-Woverride-init] 123 | .nr_reserved_cmds = 1, | ^ drivers/scsi/fnic/fnic_main.c:123:22: note: (near initialization for 'fnic_host_template.this_id') -- drivers/scsi/fnic/fnic_scsi.c: In function 'fnic_device_reset': >> drivers/scsi/fnic/fnic_scsi.c:2246:16: error: 'struct scsi_cmnd' has no member named 'request' 2246 | tag = reset_sc->request->tag; | ^~ >> drivers/scsi/fnic/fnic_scsi.c:2313:18: error: 'recet_sc' undeclared (first use in this function); did you mean 'reset_sc'? 2313 | int_to_scsilun(recet_sc->device->lun, &fc_lun); | ^~~~~~~~ | reset_sc drivers/scsi/fnic/fnic_scsi.c:2313:18: note: each undeclared identifier is reported only once for each function it appears in >> drivers/scsi/fnic/fnic_scsi.c:2377:6: error: too few arguments to function 'fnic_clean_pending_aborts' 2377 | if (fnic_clean_pending_aborts(fnic, reset_sc)) { | ^~~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/fnic/fnic_scsi.c:2160:12: note: declared here 2160 | static int fnic_clean_pending_aborts(struct fnic *fnic, | ^~~~~~~~~~~~~~~~~~~~~~~~~
vim +123 drivers/scsi/fnic/fnic_main.c
109 110 static struct scsi_host_template fnic_host_template = { 111 .module = THIS_MODULE, 112 .name = DRV_NAME, 113 .queuecommand = fnic_queuecommand, 114 .eh_timed_out = fc_eh_timed_out, 115 .eh_abort_handler = fnic_abort_cmd, 116 .eh_device_reset_handler = fnic_device_reset, 117 .eh_host_reset_handler = fnic_host_reset, 118 .slave_alloc = fnic_slave_alloc, 119 .change_queue_depth = scsi_change_queue_depth, 120 .this_id = -1, 121 .cmd_per_lun = 3, 122 .can_queue = FNIC_DFLT_IO_REQ - 1, > 123 .nr_reserved_cmds = 1, 124 .sg_tablesize = FNIC_MAX_SG_DESC_CNT, 125 .max_sectors = 0xffff, 126 .shost_groups = fnic_host_groups, 127 .track_queue_depth = 1, 128 }; 129
--- 0-DAY CI Kernel Test Service, Intel Corporation https://lists.01.org/hyperkitty/list/kbuild-all@lists.01.org [unhandled content-type:application/gzip] | |