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>
This commit is contained in:

gecommit door
James Bottomley

bovenliggende
1284fb0cff
commit
1786f4a093
@@ -786,7 +786,7 @@ void cxlflash_restore_luntable(struct cxlflash_cfg *cfg)
|
||||
u32 chan;
|
||||
u32 lind;
|
||||
struct afu *afu = cfg->afu;
|
||||
struct sisl_global_map *agm = &afu->afu_map->global;
|
||||
struct sisl_global_map __iomem *agm = &afu->afu_map->global;
|
||||
|
||||
mutex_lock(&global.mutex);
|
||||
|
||||
@@ -831,7 +831,7 @@ static int init_luntable(struct cxlflash_cfg *cfg, struct llun_info *lli)
|
||||
u32 lind;
|
||||
int rc = 0;
|
||||
struct afu *afu = cfg->afu;
|
||||
struct sisl_global_map *agm = &afu->afu_map->global;
|
||||
struct sisl_global_map __iomem *agm = &afu->afu_map->global;
|
||||
|
||||
mutex_lock(&global.mutex);
|
||||
|
||||
|
Verwijs in nieuw issue
Block a user