From: kernel test robot <lkp@intel.com>
To: Hannes Reinecke <hare@suse.de>
Cc: kbuild-all@lists.01.org, linux-kernel@vger.kernel.org
Subject: [hare-scsi-devel:scsi-private.v2 3/21] drivers/scsi/fnic/fnic_main.c:123:22: error: initialized field overwritten
Date: Fri, 12 Nov 2021 03:28:35 +0800 [thread overview]
Message-ID: <202111120327.i0xioi6j-lkp@intel.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 2344 bytes --]
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
[-- Attachment #2: .config.gz --]
[-- Type: application/gzip, Size: 66514 bytes --]
reply other threads:[~2021-11-11 19:28 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202111120327.i0xioi6j-lkp@intel.com \
--to=lkp@intel.com \
--cc=hare@suse.de \
--cc=kbuild-all@lists.01.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®