From patchwork Tue Aug 30 08:50:10 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sreekanth Reddy X-Patchwork-Id: 12958934 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 0701EECAAD4 for ; Tue, 30 Aug 2022 08:37:58 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231504AbiH3Ih4 (ORCPT ); Tue, 30 Aug 2022 04:37:56 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45058 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230353AbiH3Ihy (ORCPT ); Tue, 30 Aug 2022 04:37:54 -0400 Received: from mail-pl1-x629.google.com (mail-pl1-x629.google.com [IPv6:2607:f8b0:4864:20::629]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2F9FAC57A1 for ; Tue, 30 Aug 2022 01:37:53 -0700 (PDT) Received: by mail-pl1-x629.google.com with SMTP id f12so10253008plb.11 for ; Tue, 30 Aug 2022 01:37:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; h=mime-version:message-id:date:subject:cc:to:from:from:to:cc; bh=gHUJatn8axhH0alF1VkMJYhy7ehf12x5UiS61cVt9no=; b=CV8MP2XU+DIfp4+8uXBbGGUVW4pyoKTfxnStE3nHbDLFIlOPXDejvX1L3AOX+FWBzi 8oLplHlmLRl3nbzDLziYbTIyDsva8qqk8xoE7h2B4xELx4LyulvmTpnf0IqC4CKbp0en 5H0JOLinR38N8xINJtChKeeh/KBxOQqb33nlg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=mime-version:message-id:date:subject:cc:to:from:x-gm-message-state :from:to:cc; bh=gHUJatn8axhH0alF1VkMJYhy7ehf12x5UiS61cVt9no=; b=HWWHckG5L4Hr01f816ibqETfvzdzpUbhUbsXqFecgTNrZwASS4W/gEZYtTBHcjP/lh xy8qeknlOyTwnA3wPW4QbaFdJWtj/6TCiOcKu3Smb2VxMkZsNtM+dMuxZ8uQPkZm6suF AntPh3YxpABJUGksoyiCoQklml6+iKGbAND23HY7dirYkObsLw6sNYR2JPylcTNhENHD gYYMcEfI62zU3TCcbfrmTbZ+5WqH2tE05wbvN5YBEP/EEb/b8JR6zt0NhJFdfE+jbEq8 glxVzFi74vnhS+q05Z8LoEhBKGEL4135Bs5kxOrgRYuzq2ekwUeeYvROBn05VXztt3+A 23rA== X-Gm-Message-State: ACgBeo1BNgK46Ixp9uQcAQhQ2J3QDs0Dbe6GrETbfSexR6+JJGrNZsFl kGCg1gQM+fDZNuuMOdqyXKt2ideR9gdxENGCxgPzTVEpkI+yszXIyWaK1uxT7BBIkepN0RXoP31 J7TG2Iv7aba+W67lzkk6pB1+gNu5tm6PT8UiI9i65rUEGrhYpcrQFay+nzlPQTLVrkAcHVZWdNm wDLOnpGpNt X-Google-Smtp-Source: AA6agR5Lmq2eMsZ2vFj7sw8BOmm/dS1MqVH/QuD4LGCoItEhzp3PeogfGzR/HNTsk3+NlzeOt+R0mA== X-Received: by 2002:a17:902:8b86:b0:170:d739:9a35 with SMTP id ay6-20020a1709028b8600b00170d7399a35mr20542516plb.35.1661848672152; Tue, 30 Aug 2022 01:37:52 -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.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 01:37:51 -0700 (PDT) From: Sreekanth Reddy To: linux-scsi@vger.kernel.org Cc: martin.petersen@oracle.com, Sreekanth Reddy Subject: [PATCH 0/1] mpi3mr: Fix partly outside array bounds type warnings Date: Tue, 30 Aug 2022 14:20:10 +0530 Message-Id: <20220830085011.26079-1-sreekanth.reddy@broadcom.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org 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(-)