From patchwork Wed Jun 28 07:05:11 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ranjan Kumar X-Patchwork-Id: 697651 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 0D886EB64DA for ; Wed, 28 Jun 2023 08:22:27 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234232AbjF1IWU (ORCPT ); Wed, 28 Jun 2023 04:22:20 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39400 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233933AbjF1IOn (ORCPT ); Wed, 28 Jun 2023 04:14:43 -0400 Received: from mail-pf1-x435.google.com (mail-pf1-x435.google.com [IPv6:2607:f8b0:4864:20::435]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3B7E3EE for ; Wed, 28 Jun 2023 01:10:30 -0700 (PDT) Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-668709767b1so3581018b3a.2 for ; Wed, 28 Jun 2023 01:10:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=broadcom.com; s=google; t=1687939830; x=1690531830; h=mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=8M3gATc2SwetiSK9B/caM9v61+X5EDRltRTI2geJQqs=; b=g5XoDpzhtEvCsZh/6BEbHEgYD6a7/x+mfxncYkZmS1+/BXJKP0cyRfoKfv4TZ22thB IB3u8BliOmluLCcDVOvkeCW2KAgl3iGgJaYXkKG2nvViU20ljyUz6VjXnajcIafDa31q st0sqGrC+/7OL4MdlC36UEoucMjX6C2f4wfow= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687939830; x=1690531830; 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=8M3gATc2SwetiSK9B/caM9v61+X5EDRltRTI2geJQqs=; b=ZBFFgNpHHa7dZd6CgkEY3lBWmUBc77Pd8xp9mMEudbcpC7AFgtPDSqrhapjgzB0CFE x7R8nf9M4Xh6L8ZUYmO3gXlaRXnSWymeFK9S6UrL1IEfO3YPstszhbAOA5p8uojDw0r4 ifckNkVI5UMQGZbAqLmB42EyMlFB3Nt9Kw1Y7QLwyw7UsDWWZPGnJ7lfUTHBxU2lTdXb Zxc+CcLVVTCRy8ZW3NGKvWSNXLfFMysZ0IGG55bvdhZZRQO4yo0qJkHOVvgCDRztMmSx jGUtHiyvn9uJ/vy3V0UK+XpZgQQjziPy+yh3m/akJ48/Bau/cZeufSvx6MvvVQRkRdg+ E7+A== X-Gm-Message-State: AC+VfDxWW8no2ynUZKa1tYxTvls40CKfsaGUaTzdLyVuSwC0mjqdvQ+i cOB/UwBwGSlJaEM2ytxWQ+xnQNwNFyDCv1trHfcxgU6NcjeGlpRUr398fHXHRvPIyKq2DvNdgz+ 7QnDTnv8Ckn/HH8gzZlUevgM15tQO9L5YIluqkluAjzrYsseV9PHqDe3ByNxZZKibS7ScUqmRKK B4Pc5fW271cw== X-Google-Smtp-Source: ACHHUZ5BBTzZv91ang8AYkPC4lAqcslukgebGomyEqGRgYm3cyCT2WpyJIob7GNKEyUgwFAvXJPo8w== X-Received: by 2002:a17:90a:2b0e:b0:263:a37:fcc3 with SMTP id x14-20020a17090a2b0e00b002630a37fcc3mr4563017pjc.5.1687935963196; Wed, 28 Jun 2023 00:06:03 -0700 (PDT) Received: from localhost.localdomain ([192.19.234.250]) by smtp.gmail.com with ESMTPSA id oj3-20020a17090b4d8300b0024e4f169931sm8964361pjb.2.2023.06.28.00.06.01 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 28 Jun 2023 00:06:02 -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 2/2] mpt3sas: Removing volatile qualifier Date: Wed, 28 Jun 2023 12:35:11 +0530 Message-Id: <20230628070511.27774-3-ranjan.kumar@broadcom.com> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20230628070511.27774-1-ranjan.kumar@broadcom.com> References: <20230628070511.27774-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 44e7ccb6f780..274b0103229b 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.c +++ b/drivers/scsi/mpt3sas/mpt3sas_base.c @@ -201,7 +201,7 @@ module_param_call(mpt3sas_fwfault_debug, _scsih_set_fwfault_debug, * while reading the system interface register. */ 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; @@ -214,7 +214,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 3b8ec4fd2d21..c51bf9738f31 100644 --- a/drivers/scsi/mpt3sas/mpt3sas_base.h +++ b/drivers/scsi/mpt3sas/mpt3sas_base.h @@ -996,7 +996,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.