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-next20260309 4/20] drivers/scsi/aic94xx/aic94xx_reg.h:252:37: warning: shift count >= width of type
Date: Wed, 18 Mar 2026 10:20:42 +0800 [thread overview]
Message-ID: <202603181032.wGSYPsWt-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/gustavoars/linux.git testing/wfamnae-next20260309
head: 323b1c00c49eb37524b7f91e1223f813990b4cce
commit: ace05b14a5eb00ab69a4968656f46e6b8b4a60fa [4/20] scsi: libsas/aci94xx: Avoid multiple -Wflex-array-member-not-at-end warnings
config: powerpc-randconfig-001-20260318 (https://download.01.org/0day-ci/archive/20260318/202603181032.wGSYPsWt-lkp@intel.com/config)
compiler: clang version 23.0.0git (https://github.com/llvm/llvm-project 4abb927bacf37f18f6359a41639a6d1b3bffffb5)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260318/202603181032.wGSYPsWt-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/202603181032.wGSYPsWt-lkp@intel.com/
All warnings (new ones prefixed by >>):
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;
| ^
In file included from drivers/scsi/aic94xx/aic94xx_hwi.c:16:
>> drivers/scsi/aic94xx/aic94xx_reg.h:252:37: warning: shift count >= width of type [-Wshift-count-overflow]
252 | asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/aic94xx/aic94xx_hwi.h:210:61: note: expanded from macro 'ASD_BUSADDR_HI'
210 | ? ((u32)((__dma_handle) >> 32)) \
| ^ ~~
drivers/scsi/aic94xx/aic94xx_hwi.c:342:40: error: no member named 'escb' in 'struct scb'
342 | struct empty_scb *escb = &ascb->scb->escb;
| ~~~~~~~~~ ^
1 warning and 2 errors generated.
--
In file included from drivers/scsi/aic94xx/aic94xx_reg.c:10:
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;
| ^
In file included from drivers/scsi/aic94xx/aic94xx_reg.c:10:
>> drivers/scsi/aic94xx/aic94xx_reg.h:252:37: warning: shift count >= width of type [-Wshift-count-overflow]
252 | asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/aic94xx/aic94xx_hwi.h:210:61: note: expanded from macro 'ASD_BUSADDR_HI'
210 | ? ((u32)((__dma_handle) >> 32)) \
| ^ ~~
1 warning and 1 error 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;
| ^
In file included from drivers/scsi/aic94xx/aic94xx_scb.c:13:
>> drivers/scsi/aic94xx/aic94xx_reg.h:252:37: warning: shift count >= width of type [-Wshift-count-overflow]
252 | asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle));
| ^~~~~~~~~~~~~~~~~~~~~~~~~~
drivers/scsi/aic94xx/aic94xx_hwi.h:210:61: note: expanded from macro 'ASD_BUSADDR_HI'
210 | ? ((u32)((__dma_handle) >> 32)) \
| ^ ~~
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;
| ~~~ ^
1 warning and 4 errors generated.
Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for SND_SOC_MPC5200_AC97
Depends on [n]: SOUND [=y] && SND [=y] && SND_SOC [=y] && SND_POWERPC_SOC [=y] && PPC_MPC52xx [=y] && PPC_BESTCOMM [=n]
Selected by [y]:
- SND_MPC52xx_SOC_PCM030 [=y] && SOUND [=y] && SND [=y] && SND_SOC [=y] && SND_POWERPC_SOC [=y] && PPC_MPC5200_SIMPLE [=y]
vim +252 drivers/scsi/aic94xx/aic94xx_reg.h
2908d778ab3e24 James Bottomley 2006-08-29 247
2908d778ab3e24 James Bottomley 2006-08-29 248 static inline void asd_write_reg_addr(struct asd_ha_struct *asd_ha, u32 reg,
2908d778ab3e24 James Bottomley 2006-08-29 249 dma_addr_t dma_handle)
2908d778ab3e24 James Bottomley 2006-08-29 250 {
2908d778ab3e24 James Bottomley 2006-08-29 251 asd_write_reg_dword(asd_ha, reg, ASD_BUSADDR_LO(dma_handle));
2908d778ab3e24 James Bottomley 2006-08-29 @252 asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle));
2908d778ab3e24 James Bottomley 2006-08-29 253 }
2908d778ab3e24 James Bottomley 2006-08-29 254
:::::: The code at line 252 was first introduced by commit
:::::: 2908d778ab3e244900c310974e1fc1c69066e450 [SCSI] aic94xx: new driver
:::::: TO: James Bottomley <James.Bottomley@SteelEye.com>
:::::: CC: James Bottomley <jejb@mulgrave.il.steeleye.com>
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-03-18 2:21 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=202603181032.wGSYPsWt-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