From patchwork Tue Aug 30 08:50:11 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12958935 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 467EAECAAA1 for ; Tue, 30 Aug 2022 08:37:59 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231475AbiH3Ih6 (ORCPT ); Tue, 30 Aug 2022 04:37:58 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45064 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231503AbiH3Ih4 (ORCPT ); Tue, 30 Aug 2022 04:37:56 -0400 Received: from mail-pf1-x42c.google.com (mail-pf1-x42c.google.com [IPv6:2607:f8b0:4864:20::42c]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7F2335E338 for ; Tue, 30 Aug 2022 01:37:55 -0700 (PDT) Received: by mail-pf1-x42c.google.com with SMTP id p185so10642464pfb.13 for ; Tue, 30 Aug 2022 01:37:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc; bh=4BU7ExEDlQ3hVSlzpbuZhDu+FhJzO9dYoji6iemdZYs=; b=bFheeLH57fILex4EkHZwVBB5fEKNvEDAQW9O+kTQSzsjhHHTXh9rtRosj09eEO5AEZ ASc59vbo1iTpuFzAlvFohFCy1c+16p6dX0imsNaYEw6W8wsSeHdng3xF1iZWkjtfCDIj ngj7crw/rXfJvWFB09qVQSTf/15apAaUx96bE= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc; bh=4BU7ExEDlQ3hVSlzpbuZhDu+FhJzO9dYoji6iemdZYs=; b=1fv5yNNG5Z0wb5qiv9cejwxZW3TXPGfduce/L7In3m7Dtdv3J8ebWeAycr4XQVp5aE 2G2CwrFv59HZjUsbRaboCA29ghSJpcys7eFqmPmaBQnVWHtLxle4bHHLM5XvlGdlTEr6 Zg2z5e2h5D8ftws2BFK2cYiERS7LHV5Hgvqo/fL20JOPxgksFiojoCPsyYriR2fY01Jx Z6ah4fYH2vIIq6ywbi516FqbpLkTweYeqhpJXG/UdVmsiNF2Ravtu2RyB8jmEGU49J7k TtLqALt9Q6jcL2yQmqX8weO/HLhOEAQXTGzBeRZLxX/1duPChGDUi9++oFKo6Gx7gqdW QKrg== X-Gm-Message-State: ACgBeo3s53AhUCxX/VzVsDX6jzby/GCDHPdrrVLGUG/QEg7KwP9vwohH zp/W8LZEDrgTPfPKhhmqm3WhtqWss5jCfiaMZ1g4O+u2SUywm8FLcQkH/mQM7oiURAYGnYk8JVb 0CqJ/dJZdPOHdMuzS+V5xTnJaeDXcyRUixObs1JCB4D2zY9kAwS9gH0jL89cEqfqjVAoGxvioK8 l58t0QXCCv X-Google-Smtp-Source: AA6agR5/VxT214rGjpcCgWdoo6/a8UzDZ7nWc0/DI+QbJooRXKliBKDIUwatCn+rt4ufaHMclalFKA== X-Received: by 2002:a63:4512:0:b0:427:bc0c:4d5a with SMTP id s18-20020a634512000000b00427bc0c4d5amr17744720pga.114.1661848674565; Tue, 30 Aug 2022 01:37:54 -0700 (PDT) Received: from dhcp-10-123-20-36.dhcp.broadcom.net ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id p17-20020a63e651000000b0041b667a1b69sm1090054pgj.36.2022.08.30.01.37.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 01:37:54 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy , kernel test robot , Stephen Rothwell Subject: [PATCH 1/1] mpi3mr: Fix partly outside array bounds type warnings Date: Tue, 30 Aug 2022 14:20:11 +0530 Message-Id: <20220830085011.26079-2-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20220830085011.26079-1-sreekanth.reddy@broadcom.com> References: <20220830085011.26079-1-sreekanth.reddy@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixed 'is partly outside array bounds of' type compilation warnings. Reported-by: kernel test robot Reported-by: Stephen Rothwell Signed-off-by: Sreekanth Reddy --- drivers/scsi/mpi3mr/mpi3mr_transport.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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;