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-next20251217 9/21] drivers/scsi/hisi_sas/hisi_sas.h:617:26: error: field has incomplete type 'struct ssp_command_iu'
Date: Sat, 20 Dec 2025 15:35:56 +0800 [thread overview]
Message-ID: <202512201547.EC1j275J-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20251217
head: 150fc993b69605795df706d61b43acac85d85171
commit: 632ae447ed286f2428f907251e03eb931b27c229 [9/21] scsi: libsas/aci94xx: Avoid multiple -Wflex-array-member-not-at-end warnings
config: sparc64-allmodconfig (https://download.01.org/0day-ci/archive/20251220/202512201547.EC1j275J-lkp@intel.com/config)
compiler: clang version 22.0.0git (https://github.com/llvm/llvm-project b324c9f4fa112d61a553bf489b5f4f7ceea05ea8)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251220/202512201547.EC1j275J-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/202512201547.EC1j275J-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/scsi/hisi_sas/hisi_sas_main.c:7:
>> drivers/scsi/hisi_sas/hisi_sas.h:617:26: error: field has incomplete type 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
drivers/scsi/hisi_sas/hisi_sas.h:617:11: note: forward declaration of 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
1 error generated.
--
In file included from drivers/scsi/hisi_sas/hisi_sas_v1_hw.c:7:
>> drivers/scsi/hisi_sas/hisi_sas.h:617:26: error: field has incomplete type 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
drivers/scsi/hisi_sas/hisi_sas.h:617:11: note: forward declaration of 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
>> drivers/scsi/hisi_sas/hisi_sas_v1_hw.c:1002:11: error: invalid application of 'sizeof' to an incomplete type 'struct ssp_command_iu'
1002 | dw2 = ((sizeof(struct ssp_command_iu) +
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/hisi_sas/hisi_sas.h:617:11: note: forward declaration of 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
2 errors generated.
--
In file included from drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:7:
>> drivers/scsi/hisi_sas/hisi_sas.h:617:26: error: field has incomplete type 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
drivers/scsi/hisi_sas/hisi_sas.h:617:11: note: forward declaration of 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
>> drivers/scsi/hisi_sas/hisi_sas_v2_hw.c:1779:11: error: invalid application of 'sizeof' to an incomplete type 'struct ssp_command_iu'
1779 | dw2 = (((sizeof(struct ssp_command_iu) + sizeof(struct ssp_frame_hdr)
| ^ ~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/hisi_sas/hisi_sas.h:617:11: note: forward declaration of 'struct ssp_command_iu'
617 | struct ssp_command_iu task;
| ^
2 errors generated.
vim +617 drivers/scsi/hisi_sas/hisi_sas.h
b3cce125cb1e2e Xiang Chen 2019-02-06 610
4ca7fe99fc8485 Yihang Li 2025-04-14 611 #define PROT_BUF_SIZE 7
c799d6bd8fe4a8 John Garry 2015-11-18 612 struct hisi_sas_command_table_ssp {
c799d6bd8fe4a8 John Garry 2015-11-18 613 struct ssp_frame_hdr hdr;
c799d6bd8fe4a8 John Garry 2015-11-18 614 union {
c799d6bd8fe4a8 John Garry 2015-11-18 615 struct {
4ca7fe99fc8485 Yihang Li 2025-04-14 616 u32 prot[PROT_BUF_SIZE];
b1890c7edc271c Gustavo A. R. Silva 2025-09-19 @617 struct ssp_command_iu task;
c799d6bd8fe4a8 John Garry 2015-11-18 618 };
c799d6bd8fe4a8 John Garry 2015-11-18 619 struct ssp_tmf_iu ssp_task;
c799d6bd8fe4a8 John Garry 2015-11-18 620 struct xfer_rdy_iu xfer_rdy;
c799d6bd8fe4a8 John Garry 2015-11-18 621 struct ssp_response_iu ssp_res;
c799d6bd8fe4a8 John Garry 2015-11-18 622 } u;
c799d6bd8fe4a8 John Garry 2015-11-18 623 };
c799d6bd8fe4a8 John Garry 2015-11-18 624
:::::: The code at line 617 was first introduced by commit
:::::: b1890c7edc271c177e1e22dd6e6ebb2158822a97 scsi: hisi_sas: Avoid a couple -Wflex-array-member-not-at-end warnings
:::::: TO: Gustavo A. R. Silva <gustavoars@kernel.org>
:::::: CC: Gustavo A. R. Silva <gustavoars@kernel.org>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2025-12-20 7:36 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=202512201547.EC1j275J-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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox