diff mbox series

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

Message ID 20220830085011.26079-2-sreekanth.reddy@broadcom.com (mailing list archive)
State Accepted
Headers show
Series mpi3mr: Fix partly outside array bounds type warnings | expand

Commit Message

Sreekanth Reddy Aug. 30, 2022, 8:50 a.m. UTC
Fixed 'is partly outside array bounds of' type
compilation warnings.

Reported-by: kernel test robot <lkp@intel.com>
Reported-by: Stephen Rothwell <sfr@canb.auug.org.au>
Signed-off-by: Sreekanth Reddy <sreekanth.reddy@broadcom.com>
---
 drivers/scsi/mpi3mr/mpi3mr_transport.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/scsi/mpi3mr/mpi3mr_transport.c b/drivers/scsi/mpi3mr/mpi3mr_transport.c
index 203251c..2367d9f 100644
--- a/drivers/scsi/mpi3mr/mpi3mr_transport.c
+++ b/drivers/scsi/mpi3mr/mpi3mr_transport.c
@@ -1607,7 +1607,8 @@  mpi3mr_update_mr_sas_port(struct mpi3mr_ioc *mrioc, struct host_port *h_port,
 	struct mpi3mr_sas_port *mr_sas_port)
 {
 	struct mpi3mr_sas_phy *mr_sas_phy;
-	u32 phy_mask_xor, phys_to_be_added, phys_to_be_removed;
+	u32 phy_mask_xor;
+	u64 phys_to_be_added, phys_to_be_removed;
 	int i;
 
 	h_port->used = 1;