summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/cxlflash/superpipe.h
diff options
context:
space:
mode:
authorMatthew R. Ochs2015-10-21 22:14:48 +0200
committerJames Bottomley2015-10-30 09:17:36 +0100
commit1786f4a0933198632c5e4d27f25e1d467e1fd032 (patch)
tree14789981147a57f9f24f79081b00317ca78e199a /drivers/scsi/cxlflash/superpipe.h
parentcxlflash: Fix function prolog parameters and return codes (diff)
downloadkernel-qcow2-linux-1786f4a0933198632c5e4d27f25e1d467e1fd032.tar.gz
kernel-qcow2-linux-1786f4a0933198632c5e4d27f25e1d467e1fd032.tar.xz
kernel-qcow2-linux-1786f4a0933198632c5e4d27f25e1d467e1fd032.zip
cxlflash: Fix MMIO and endianness errors
Sparse uncovered several errors with MMIO operations (accessing directly) and handling endianness. These can cause issues when running in different environments. Introduce __iomem and proper endianness tags/swaps where appropriate to make driver sparse clean. Signed-off-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Manoj N. Kumar <manoj@linux.vnet.ibm.com> Reviewed-by: Brian King <brking@linux.vnet.ibm.com> Reviewed-by: Andrew Donnellan <andrew.donnellan@au1.ibm.com> Reviewed-by: Tomas Henzl <thenzl@redhat.com> Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/cxlflash/superpipe.h')
-rw-r--r--drivers/scsi/cxlflash/superpipe.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/cxlflash/superpipe.h b/drivers/scsi/cxlflash/superpipe.h
index 79470910d5be..7df88eeea9c0 100644
--- a/drivers/scsi/cxlflash/superpipe.h
+++ b/drivers/scsi/cxlflash/superpipe.h
@@ -91,7 +91,7 @@ enum ctx_ctrl {
#define DECODE_CTXID(_val) (_val & 0xFFFFFFFF)
struct ctx_info {
- struct sisl_ctrl_map *ctrl_map; /* initialized at startup */
+ struct sisl_ctrl_map __iomem *ctrl_map; /* initialized at startup */
struct sisl_rht_entry *rht_start; /* 1 page (req'd for alignment),
alloc/free on attach/detach */
u32 rht_out; /* Number of checked out RHT entries */