Messages in this thread | | | Date | Fri, 12 Nov 2021 03:28:35 +0800 | From | kernel test robot <> | Subject | [hare-scsi-devel:scsi-private.v2 3/21] drivers/scsi/fnic/fnic_main.c:123:22: error: initialized field overwritten |
| |
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-allyesconfig (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 make 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/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: error: initialized field overwritten [-Werror=override-init] 123 | .nr_reserved_cmds = 1, | ^ drivers/scsi/fnic/fnic_main.c:123:22: note: (near initialization for 'fnic_host_template.this_id') cc1: all warnings being treated as errors
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] | |