From: kernel test robot <lkp@intel.com>
To: "Gustavo A. R. Silva" <gustavoars@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
"Gustavo A. R. Silva" <gustavo@embeddedor.com>,
LKML <linux-kernel@vger.kernel.org>
Subject: [gustavoars:testing/wfamnae-next20260302 4/12] drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
Date: Wed, 04 Mar 2026 03:04:27 +0800 [thread overview]
Message-ID: <202603040331.C4EM02yD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20260302
head: 759ff201de93e9bf74683ac6d4414b9141b12c27
commit: 052ea0d6ef438e32950d71cec77517e300b94872 [4/12] scsi: libsas/aci94xx: Avoid multiple -Wflex-array-member-not-at-end warnings
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20260304/202603040331.C4EM02yD-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 9a109fbb6e184ec9bcce10615949f598f4c974a9)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260304/202603040331.C4EM02yD-lkp@intel.com/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of
the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603040331.C4EM02yD-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/scsi/aic94xx/aic94xx_init.c:21:
In file included from drivers/scsi/aic94xx/aic94xx_reg.h:13:
In file included from drivers/scsi/aic94xx/aic94xx_hwi.h:19:
>> drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
drivers/scsi/aic94xx/aic94xx_sas.h:323:9: note: forward declaration of 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
1 error generated.
--
In file included from drivers/scsi/aic94xx/aic94xx_hwi.c:16:
In file included from drivers/scsi/aic94xx/aic94xx_reg.h:13:
In file included from drivers/scsi/aic94xx/aic94xx_hwi.h:19:
>> drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
drivers/scsi/aic94xx/aic94xx_sas.h:323:9: note: forward declaration of 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
>> drivers/scsi/aic94xx/aic94xx_hwi.c:342:40: error: no member named 'escb' in 'struct scb'
342 | struct empty_scb *escb = &ascb->scb->escb;
| ~~~~~~~~~ ^
2 errors generated.
--
In file included from drivers/scsi/aic94xx/aic94xx_scb.c:13:
In file included from drivers/scsi/aic94xx/aic94xx_reg.h:13:
In file included from drivers/scsi/aic94xx/aic94xx_hwi.h:19:
>> drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
drivers/scsi/aic94xx/aic94xx_sas.h:323:9: note: forward declaration of 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
>> drivers/scsi/aic94xx/aic94xx_scb.c:369:39: error: no member named 'escb' in 'struct scb'
369 | struct empty_scb *escb = &ascb->scb->escb;
| ~~~~~~~~~ ^
>> drivers/scsi/aic94xx/aic94xx_scb.c:631:42: error: no member named 'control_phy' in 'struct scb'
631 | struct control_phy *control_phy = &scb->control_phy;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_scb.c:770:42: error: no member named 'control_phy' in 'struct scb'
770 | struct control_phy *control_phy = &scb->control_phy;
| ~~~ ^
4 errors generated.
--
In file included from drivers/scsi/aic94xx/aic94xx_tmf.c:12:
>> drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
drivers/scsi/aic94xx/aic94xx_sas.h:323:9: note: forward declaration of 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
>> drivers/scsi/aic94xx/aic94xx_tmf.c:120:7: error: no member named 'clear_nexus' in 'struct scb'
120 | scb->clear_nexus.nexus = NEXUS_ADAPTER;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:129:7: error: no member named 'clear_nexus' in 'struct scb'
129 | scb->clear_nexus.nexus = NEXUS_PORT;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:130:7: error: no member named 'clear_nexus' in 'struct scb'
130 | scb->clear_nexus.conn_mask = port->phy_mask;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:146:7: error: no member named 'clear_nexus' in 'struct scb'
146 | scb->clear_nexus.nexus = NEXUS_I_T;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:149:8: error: no member named 'clear_nexus' in 'struct scb'
149 | scb->clear_nexus.flags = EXEC_Q | SUSPEND_TX;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:152:8: error: no member named 'clear_nexus' in 'struct scb'
152 | scb->clear_nexus.flags = SEND_Q | NOTINQ;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:155:8: error: no member named 'clear_nexus' in 'struct scb'
155 | scb->clear_nexus.flags = RESUME_TX;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:157:7: error: no member named 'clear_nexus' in 'struct scb'
157 | scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long)
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:206:7: error: no member named 'clear_nexus' in 'struct scb'
206 | scb->clear_nexus.nexus = NEXUS_I_T_L;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:207:7: error: no member named 'clear_nexus' in 'struct scb'
207 | scb->clear_nexus.flags = SEND_Q | EXEC_Q | NOTINQ;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:208:14: error: no member named 'clear_nexus' in 'struct scb'
208 | memcpy(scb->clear_nexus.ssp_task.lun, lun, 8);
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:209:7: error: no member named 'clear_nexus' in 'struct scb'
209 | scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long)
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:220:7: error: no member named 'clear_nexus' in 'struct scb'
220 | scb->clear_nexus.nexus = NEXUS_TAG;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:221:14: error: no member named 'clear_nexus' in 'struct scb'
221 | memcpy(scb->clear_nexus.ssp_task.lun, task->ssp_task.LUN, 8);
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:222:7: error: no member named 'clear_nexus' in 'struct scb'
222 | scb->clear_nexus.ssp_task.tag = tascb->tag;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:224:8: error: no member named 'clear_nexus' in 'struct scb'
224 | scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long)
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:235:7: error: no member named 'clear_nexus' in 'struct scb'
235 | scb->clear_nexus.nexus = NEXUS_TRANS_CX;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_tmf.c:237:8: error: no member named 'clear_nexus' in 'struct scb'
237 | scb->clear_nexus.conn_handle = cpu_to_le16((u16)(unsigned long)
| ~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
--
In file included from drivers/scsi/aic94xx/aic94xx_task.c:11:
>> drivers/scsi/aic94xx/aic94xx_sas.h:323:28: error: field has incomplete type 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
drivers/scsi/aic94xx/aic94xx_sas.h:323:9: note: forward declaration of 'struct ssp_command_iu_hdr'
323 | struct ssp_command_iu_hdr ssp_cmd;
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:131:31: note: expanded from macro '__swab64'
131 | (__u64)(__builtin_constant_p(x) ? \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:25:12: note: expanded from macro '___constant_swab64'
25 | (((__u64)(x) & (__u64)0x00000000000000ffULL) << 56) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:26:12: note: expanded from macro '___constant_swab64'
26 | (((__u64)(x) & (__u64)0x000000000000ff00ULL) << 40) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:27:12: note: expanded from macro '___constant_swab64'
27 | (((__u64)(x) & (__u64)0x0000000000ff0000ULL) << 24) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:28:12: note: expanded from macro '___constant_swab64'
28 | (((__u64)(x) & (__u64)0x00000000ff000000ULL) << 8) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:29:12: note: expanded from macro '___constant_swab64'
29 | (((__u64)(x) & (__u64)0x000000ff00000000ULL) >> 8) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:30:12: note: expanded from macro '___constant_swab64'
30 | (((__u64)(x) & (__u64)0x0000ff0000000000ULL) >> 24) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:31:12: note: expanded from macro '___constant_swab64'
31 | (((__u64)(x) & (__u64)0x00ff000000000000ULL) >> 40) | \
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:132:21: note: expanded from macro '__swab64'
132 | ___constant_swab64(x) : \
| ^
include/uapi/linux/swab.h:32:12: note: expanded from macro '___constant_swab64'
32 | (((__u64)(x) & (__u64)0xff00000000000000ULL) >> 56)))
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:129:33: error: no member named 'ssp_task' in 'struct scb'
129 | le64_to_cpu(ascb->scb->ssp_task.sg_element[0].bus_addr);
| ~~~~~~~~~ ^
include/linux/byteorder/generic.h:87:21: note: expanded from macro 'le64_to_cpu'
87 | #define le64_to_cpu __le64_to_cpu
| ^
include/uapi/linux/byteorder/big_endian.h:33:59: note: expanded from macro '__le64_to_cpu'
33 | #define __le64_to_cpu(x) __swab64((__force __u64)(__le64)(x))
| ^
include/uapi/linux/swab.h:133:12: note: expanded from macro '__swab64'
133 | __fswab64(x))
| ^
>> drivers/scsi/aic94xx/aic94xx_task.c:365:7: error: no member named 'ata_task' in 'struct scb'
365 | scb->ata_task.proto_conn_rate = (1 << 5); /* STP */
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:367:8: error: no member named 'ata_task' in 'struct scb'
367 | scb->ata_task.proto_conn_rate |= dev->linkrate;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:369:7: error: no member named 'ata_task' in 'struct scb'
369 | scb->ata_task.total_xfer_len = cpu_to_le32(task->total_xfer_len);
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:370:7: error: no member named 'ata_task' in 'struct scb'
370 | scb->ata_task.fis = task->ata_task.fis;
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:372:8: error: no member named 'ata_task' in 'struct scb'
372 | scb->ata_task.fis.flags |= 0x80; /* C=1: update ATA cmd reg */
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:373:7: error: no member named 'ata_task' in 'struct scb'
373 | scb->ata_task.fis.flags &= 0xF0; /* PM_PORT field shall be 0 */
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:375:15: error: no member named 'ata_task' in 'struct scb'
375 | memcpy(scb->ata_task.atapi_packet, task->ata_task.atapi_packet,
| ~~~ ^
drivers/scsi/aic94xx/aic94xx_task.c:377:7: error: no member named 'ata_task' in 'struct scb'
377 | scb->ata_task.sister_scb = cpu_to_le16(0xFFFF);
| ~~~ ^
fatal error: too many errors emitted, stopping now [-ferror-limit=]
20 errors generated.
vim +323 drivers/scsi/aic94xx/aic94xx_sas.h
316
317 /* This is both ssp_task and long_ssp_task
318 */
319 struct initiate_ssp_task {
320 u8 proto_conn_rate; /* proto:6,4, conn_rate:3,0 */
321 __le32 total_xfer_len;
322 struct ssp_frame_hdr ssp_frame;
> 323 struct ssp_command_iu_hdr ssp_cmd;
324 __le16 sister_scb; /* 0xFFFF */
325 __le16 conn_handle; /* index to DDB for the intended target */
326 u8 data_dir; /* :1,0 */
327 #define DATA_DIR_NONE 0x00
328 #define DATA_DIR_IN 0x01
329 #define DATA_DIR_OUT 0x02
330 #define DATA_DIR_BYRECIPIENT 0x03
331
332 u8 _r_a;
333 u8 retry_count;
334 u8 _r_b[5];
335 struct sg_el sg_element[3]; /* 2 real and 1 link */
336 } __attribute__ ((packed));
337
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-03 19:04 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=202603040331.C4EM02yD-lkp@intel.com \
--to=lkp@intel.com \
--cc=gustavo@embeddedor.com \
--cc=gustavoars@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/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 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.