From patchwork Wed Jul 26 11:25:27 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 706877 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 EDB17C001DC for ; Wed, 26 Jul 2023 11:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233722AbjGZL1l (ORCPT ); Wed, 26 Jul 2023 07:27:41 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55772 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233284AbjGZL1R (ORCPT ); Wed, 26 Jul 2023 07:27:17 -0400 Received: from mail-pl1-x635.google.com (mail-pl1-x635.google.com [IPv6:2607:f8b0:4864:20::635]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 252B210D4 for ; Wed, 26 Jul 2023 04:26:49 -0700 (PDT) Received: by mail-pl1-x635.google.com with SMTP id d9443c01a7336-1b8ad9eede0so52360925ad.1 for ; Wed, 26 Jul 2023 04:26:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1690370802; x=1690975602; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=JlWsyZS5LCdhnTcjBm8SE7wjihNPSeu0HXNwtUyKo2Q=; b=X9CVbSndt9xQr9HfsNu/4zWdlB5lP+YNXngjHgLRZcTBTdWEnN2zFFN5wEDCFTGSWb ASZsqMdJI9EWe0RFIy18jzSRFqyjpHNrNQQ4Rubo2jF7fMl41oXxzFIzdD4aXuHbmrEP xxc9aAFr7LgnvlbvrWd07vIqRX3imBS2YC9vM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690370802; x=1690975602; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=JlWsyZS5LCdhnTcjBm8SE7wjihNPSeu0HXNwtUyKo2Q=; b=apCGCIvi7QreJdTezbnzTLtr1cTf65bZHV3WQ92AXIrisQnzscnfWBxplHj8d0M4IS 1GTa8L1jRlEszUqFy5KsFT/cW329IHLc2EUWw5hd8N+Qw31KbZ2zWv9qMtVvu4AflbNk F4hfXXWyE20iDBfMeXU3gNynnOOiJx+Cjg/nXNk4v+/+Gk1wqBvW1VK27uYYdCjKszUm DZh9cOt1H7OLX/oRYsLZzjCAvGrWGW201wCMoY0gGxbijgLWdxR6v+y4gJOQfQiWO3zN k5Lyc+JzEmZDjXurlp3RDVDC12RENhQe7E79sYwQn84/ITgiOajpk5amSIs+vMerilEc ns/g== X-Gm-Message-State: ABy/qLapfKdov88mBK2j1TDJv90YYLqVKY4yLRetqanRmqdW+P2VpOuB u49gAwS2G20rQkvPp++5vTgK3yaumo6nKy8iPbz664LhSsekfW3tbXrwGEwTJ0EOSW07iUJOmv1 AT/iPrqK5OGDirlmnoOplQN4gy8Hm2CDP3j/xFaFunJ9uqyq/qi0KJlHsGMO+62vncZnxS8Wr0l 4eSg3qgCipaA== X-Google-Smtp-Source: APBJJlHiJpFCVr9T4q6o4hNc51V/iZsAv4ArTyTfoJla/ZSKY4Jo5VXUrWnKN4QGio3Nfyz1lu6OPA== X-Received: by 2002:a17:902:b711:b0:1b8:9598:6508 with SMTP id d17-20020a170902b71100b001b895986508mr1743440pls.18.1690370801902; Wed, 26 Jul 2023 04:26:41 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id iz11-20020a170902ef8b00b001bbbc655ca1sm3443231plb.219.2023.07.26.04.26.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 26 Jul 2023 04:26:41 -0700 (PDT) From: Ranjan Kumar To: linux-scsi@vger.kernel.org, martin.petersen@oracle.com Cc: sathya.prakash@broadcom.com, sreekanth.reddy@broadcom.com, Ranjan Kumar Subject: [PATCH v3 2/2] mpt3sas: Removing volatile qualifier Date: Wed, 26 Jul 2023 16:55:27 +0530 Message-Id: <20230726112527.14987-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230726112527.14987-1-ranjan.kumar@broadcom.com> References: <20230726112527.14987-1-ranjan.kumar@broadcom.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Removing reduntant volatile qualifier Signed-off-by: Ranjan Kumar --- drivers/scsi/mpt3sas/mpi/mpi2.h | 2 +- drivers/scsi/mpt3sas/mpt3sas_base.c | 4 ++-- drivers/scsi/mpt3sas/mpt3sas_base.h | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/scsi/mpt3sas/mpi/mpi2.h b/drivers/scsi/mpt3sas/mpi/mpi2.h index ed3923f8db4f..6de35b32223c 100644 --- a/drivers/scsi/mpt3sas/mpi/mpi2.h +++ b/drivers/scsi/mpt3sas/mpi/mpi2.h @@ -199,7 +199,7 @@ * *****************************************************************************/ -typedef volatile struct _MPI2_SYSTEM_INTERFACE_REGS { +typedef struct _MPI2_SYSTEM_INTERFACE_REGS { U32 Doorbell; /*0x00 */ U32 WriteSequence; /*0x04 */ U32 HostDiagnostic; /*0x08 */ diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.c b/drivers/scsi/mpt3sas/mpt3sas_base.c index efc9bc48db6f..01ebbd8b21de 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -203,7 +203,7 @@ module_param_call(mpt3sas_fwfault_debug, _scsih_set_fwfault_debug, */ static inline u32 -_base_readl_aero(const volatile void __iomem *addr, u8 retry_count) +_base_readl_aero(const void __iomem *addr, u8 retry_count) { u32 i = 0, ret_val; @@ -216,7 +216,7 @@ _base_readl_aero(const volatile void __iomem *addr, u8 retry_count) } static inline u32 -_base_readl(const volatile void __iomem *addr, u8 retry_count) +_base_readl(const void __iomem *addr, u8 retry_count) { return readl(addr); } diff --git a/drivers/scsi/mpt3sas/mpt3sas_base.h b/drivers/scsi/mpt3sas/mpt3sas_base.h index b4e57b89915d..9b0c338df3a7 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.h +++ b/drivers/scsi/mpt3sas/mpt3sas_base.h @@ -1003,7 +1003,7 @@ typedef void (*NVME_BUILD_PRP)(struct MPT3SAS_ADAPTER *ioc, u16 smid, typedef void (*PUT_SMID_IO_FP_HIP) (struct MPT3SAS_ADAPTER *ioc, u16 smid, u16 funcdep); typedef void (*PUT_SMID_DEFAULT) (struct MPT3SAS_ADAPTER *ioc, u16 smid); -typedef u32 (*BASE_READ_REG) (const volatile void __iomem *addr, u8 retry_count); +typedef u32 (*BASE_READ_REG) (const void __iomem *addr, u8 retry_count); /* * To get high iops reply queue's msix index when high iops mode is enabled * else get the msix index of general reply queues.