Skip to content

Commit

Permalink
scsi: mpt3sas: Remove volatile qualifier
Browse files Browse the repository at this point in the history
Remove reduntant volatile qualifier.

Signed-off-by: Ranjan Kumar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Martin K. Petersen <[email protected]>
  • Loading branch information
Ranjan Kumar authored and martinkpetersen committed Aug 31, 2023
1 parent 4ca10f3 commit 0854065
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/scsi/mpt3sas/mpi/mpi2.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
8 changes: 4 additions & 4 deletions drivers/scsi/mpt3sas/mpt3sas_base.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static void
_base_clear_outstanding_commands(struct MPT3SAS_ADAPTER *ioc);

static u32
_base_readl_ext_retry(const volatile void __iomem *addr);
_base_readl_ext_retry(const void __iomem *addr);

/**
* mpt3sas_base_check_cmd_timeout - Function
Expand Down Expand Up @@ -204,7 +204,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)
_base_readl_aero(const void __iomem *addr)
{
u32 i = 0, ret_val;

Expand All @@ -217,7 +217,7 @@ _base_readl_aero(const volatile void __iomem *addr)
}

static u32
_base_readl_ext_retry(const volatile void __iomem *addr)
_base_readl_ext_retry(const void __iomem *addr)
{
u32 i, ret_val;

Expand All @@ -231,7 +231,7 @@ _base_readl_ext_retry(const volatile void __iomem *addr)
}

static inline u32
_base_readl(const volatile void __iomem *addr)
_base_readl(const void __iomem *addr)
{
return readl(addr);
}
Expand Down
2 changes: 1 addition & 1 deletion drivers/scsi/mpt3sas/mpt3sas_base.h
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,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);
typedef u32 (*BASE_READ_REG) (const void __iomem *addr);
/*
* To get high iops reply queue's msix index when high iops mode is enabled
* else get the msix index of general reply queues.
Expand Down

0 comments on commit 0854065

Please sign in to comment.