mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-06 19:08:57 +09:00
scsi: mpi3mr: Drop unnecessary volatile from __iomem pointers
[ Upstream commit 6853885b21cb1d7157cc14c9d30cc17141565bae ] The volatile qualifier is redundant for __iomem pointers. Cleaned up usage in mpi3mr_writeq() and sysif_regs pointer as per Upstream compliance. Signed-off-by: Ranjan Kumar <ranjan.kumar@broadcom.com> Link: https://lore.kernel.org/r/20250627194539.48851-3-ranjan.kumar@broadcom.com Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Stable-dep-of: c91e140c82eb ("scsi: mpi3mr: Serialize admin queue BAR writes on 32-bit systems") Signed-off-by: Sasha Levin <sashal@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
6d53b2a134
commit
c065c8d20d
@@ -1055,7 +1055,7 @@ struct mpi3mr_ioc {
|
||||
char name[MPI3MR_NAME_LENGTH];
|
||||
char driver_name[MPI3MR_NAME_LENGTH];
|
||||
|
||||
volatile struct mpi3_sysif_registers __iomem *sysif_regs;
|
||||
struct mpi3_sysif_registers __iomem *sysif_regs;
|
||||
resource_size_t sysif_regs_phys;
|
||||
int bars;
|
||||
u64 dma_mask;
|
||||
|
||||
@@ -23,12 +23,12 @@ module_param(poll_queues, int, 0444);
|
||||
MODULE_PARM_DESC(poll_queues, "Number of queues for io_uring poll mode. (Range 1 - 126)");
|
||||
|
||||
#if defined(writeq) && defined(CONFIG_64BIT)
|
||||
static inline void mpi3mr_writeq(__u64 b, volatile void __iomem *addr)
|
||||
static inline void mpi3mr_writeq(__u64 b, void __iomem *addr)
|
||||
{
|
||||
writeq(b, addr);
|
||||
}
|
||||
#else
|
||||
static inline void mpi3mr_writeq(__u64 b, volatile void __iomem *addr)
|
||||
static inline void mpi3mr_writeq(__u64 b, void __iomem *addr)
|
||||
{
|
||||
__u64 data_out = b;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user