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