From patchwork Thu Jul 13 07:53:02 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 13311442 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 15CFCC001DF for ; Thu, 13 Jul 2023 07:54:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232943AbjGMHyC (ORCPT ); Thu, 13 Jul 2023 03:54:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232977AbjGMHx6 (ORCPT ); Thu, 13 Jul 2023 03:53:58 -0400 Received: from mail-qk1-x729.google.com (mail-qk1-x729.google.com [IPv6:2607:f8b0:4864:20::729]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D292F2102 for ; Thu, 13 Jul 2023 00:53:57 -0700 (PDT) Received: by mail-qk1-x729.google.com with SMTP id af79cd13be357-7653bd3ff2fso49678985a.3 for ; Thu, 13 Jul 2023 00:53:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1689234837; x=1691826837; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=jpO2A01Rmr3/QDxNIk/euNMVezHRTjL8FNRAcpnfqIY=; b=RkPEbNkrO8SjlQRcpcrVsonZItj/ojKhgQvvMil06+Go38jo3KCLTN2Dqyty8MCBtd 7ojmaO4rIzhICru3oVzoksj0tClUUVxjwOQmat4YhlJmivStFNSI5Cy/zLkm8SmOiFpt bedhtE2AM9dNeF9SklmwECCXCWSsbrxj8DgCw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689234837; x=1691826837; 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=jpO2A01Rmr3/QDxNIk/euNMVezHRTjL8FNRAcpnfqIY=; b=G7BmpBLuKYUGrtDvi4R+x4CFmwmmQ8GpsdBBih76q6pauWRQLNYwFPbIi8qyDWrfzS KoIOYk5JfvQO52Lbi5u8r5GLAXsUXt47AF6a/1NJb8u5RZseb/VD/4P+YJN36huqSfy7 Vs6eRtRAlyO2EjIYp299hnLstSVrpKB7/BgwDb59Y5jLUudFwOC9c4VyETfmtsbqMyCB QyYkpLKv1MIRv41tSaUG26VgZQS4V1kpCV2Bn3eOVQOEYfj5hQ2/XiKx2ZpQXWkOAPUW dl4VzcuKDYgnvmPmpHJehEV71P6NVENaPLbXhVtJhLTLc7Flrqd5W9ZYMgUU64H+hji/ x2tg== X-Gm-Message-State: ABy/qLbXwSeIlkvitGie+xxY64vuzSdoOklnuxSa+urk4hM96IsnZ19g mIMYLtUw6q2u3EjPUh8CMBQGazPT4bbwAle8E+BPJU/6wnbHQDY9STT76zMPWGrc2YZ3WbknCLc NCYV+8bHxssJJgN4N+e3JhsceckPZ6E2VuX/KRxVhxRrG0X4wC9RE3ynA3ARk7nCnDJl22vZXXA xi/F2Xl7dWsw== X-Google-Smtp-Source: APBJJlGgRNTeVZSyiqvxJCPtUov1u2gLaWt7Eubv8OyRr5zdiLDliM+Z3u/OIUOXq5z2kYpUkcgopA== X-Received: by 2002:a05:620a:47a7:b0:767:17a0:e849 with SMTP id dt39-20020a05620a47a700b0076717a0e849mr842834qkb.18.1689234836619; Thu, 13 Jul 2023 00:53:56 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id 20-20020a17090a199400b002639c4f81cesm12267519pji.3.2023.07.13.00.53.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Jul 2023 00:53:56 -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 v1 2/2] mpt3sas: Removing volatile qualifier Date: Thu, 13 Jul 2023 13:23:02 +0530 Message-Id: <20230713075302.10073-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230713075302.10073-1-ranjan.kumar@broadcom.com> References: <20230713075302.10073-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.