[PATCH 0/1] mpi3mr: Fix partly outside array bounds type warnings

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Fix below compilation warning reported with W=1,

include/linux/find.h:40:23: warning: array subscript 'long unsigned int[0]'
is partly outside array bounds of 'u32[1]' {aka 'unsigned int[1]'}
[-Warray-bounds]
      40 |                 val = *addr & GENMASK(size - 1, offset);
         |                       ^~~~~
   drivers/scsi/mpi3mr/mpi3mr_transport.c:1610:27: note: while referencing
'phys_to_be_added'
    1610 |         u32 phy_mask_xor, phys_to_be_added, phys_to_be_removed;
         |                           ^~~~~~~~~~~~~~~~

Sreekanth Reddy (1):
  mpi3mr: Fix partly outside array bounds type warnings

 drivers/scsi/mpi3mr/mpi3mr_transport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

-- 
2.27.0

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]

  Powered by Linux