Skip to contentSkip to conversation

drivers/scsi/aic94xx/aic94xx_reg.h:252:37: warning: shift count >= width of type

PATCH kernel test robot 1 participant 1 message Nov 22

lore
Share & tools
lore

kernel test robot

author build bot
#0 lore raw

::::::
:::::: Manual check reason: "too many reports for this commit" ::::::

BCC: [email protected]
CC: [email protected]
TO: Lorenzo Pieralisi <[email protected]>

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/lpieralisi/linux.git b4/acpi-static-table-irq-probe-defer-v2
head:   a75860f203b994ab67f8a876c7f568ac0f7f84c0
commit: 5df91ea5bcbef51cb967f3a07dd7c69c50681213 [3/10] ACPI: Introduce irq_get() for static fwnodes

:::::: branch date: 2 days ago
:::::: commit date: 2 days ago
config: i386-buildonly-randconfig-1005-20261122 (https://download.01.org/0day-ci/archive/20261122/[email protected]/config)
compiler: clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261122/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/r/[email protected]/

All warnings (new ones prefixed by >>):

In file included from drivers/scsi/aic94xx/aic94xx_hwi.c:15:
In file included from drivers/scsi/aic94xx/aic94xx.h:16:
In file included from include/scsi/libsas.h:16:
In file included from include/linux/libata.h:22:
include/linux/acpi.h:126:15: error: call to undeclared function 'FIELD_PREP'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]

     126 |         irq->flags = ACPI_STATIC_IRQ_FLAGS(trigger, polarity);
         |                      ^
   include/linux/acpi.h:71:3: note: expanded from macro 'ACPI_STATIC_IRQ_FLAGS'
      71 |         (FIELD_PREP(ACPI_STATIC_IRQ_TRIGGER_MASK, (trigger))    | \
         |          ^
   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)) \
| ^ ~~
1 warning and 1 error generated.

vim +252 drivers/scsi/aic94xx/aic94xx_reg.h

2908d778ab3e244 James Bottomley 2006-08-29  247  
2908d778ab3e244 James Bottomley 2006-08-29  248  static inline void asd_write_reg_addr(struct asd_ha_struct *asd_ha, u32 reg,
2908d778ab3e244 James Bottomley 2006-08-29  249  				      dma_addr_t dma_handle)
2908d778ab3e244 James Bottomley 2006-08-29  250  {
2908d778ab3e244 James Bottomley 2006-08-29  251  	asd_write_reg_dword(asd_ha, reg,   ASD_BUSADDR_LO(dma_handle));

2908d778ab3e244 James Bottomley 2006-08-29 @252 asd_write_reg_dword(asd_ha, reg+4, ASD_BUSADDR_HI(dma_handle));
2908d778ab3e244 James Bottomley 2006-08-29 253 } 2908d778ab3e244 James Bottomley 2006-08-29 254

:::::: The code at line 252 was first introduced by commit :::::: 2908d778ab3e244900c310974e1fc1c69066e450 [SCSI] aic94xx: new driver

:::::: TO: James Bottomley <[email protected]> :::::: CC: James Bottomley <[email protected]>

Signature · 2 lines
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki