Skip to content

Commit 2bce690

Browse files
author
Damien Le Moal
committed
ata: ahci_xgene: use correct type for port mmio address
Sparse complains about an incorrect type for port_mmio pointer variables: drivers/ata/ahci_xgene.c:196:41: warning: incorrect type in initializer (different address spaces) drivers/ata/ahci_xgene.c:196:41: expected void *port_mmio drivers/ata/ahci_xgene.c:196:41: got void [noderef] __iomem * Fix this by declaring port_mmio as "void __iomem *" instead of "void *". Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]>
1 parent f8bc938 commit 2bce690

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/ata/ahci_xgene.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ static unsigned int xgene_ahci_qc_issue(struct ata_queued_cmd *qc)
193193
struct xgene_ahci_context *ctx = hpriv->plat_data;
194194
int rc = 0;
195195
u32 port_fbs;
196-
void *port_mmio = ahci_port_base(ap);
196+
void __iomem *port_mmio = ahci_port_base(ap);
197197

198198
/*
199199
* Write the pmp value to PxFBS.DEV
@@ -454,7 +454,7 @@ static int xgene_ahci_pmp_softreset(struct ata_link *link, unsigned int *class,
454454
int pmp = sata_srst_pmp(link);
455455
struct ata_port *ap = link->ap;
456456
u32 rc;
457-
void *port_mmio = ahci_port_base(ap);
457+
void __iomem *port_mmio = ahci_port_base(ap);
458458
u32 port_fbs;
459459

460460
/*
@@ -499,7 +499,7 @@ static int xgene_ahci_softreset(struct ata_link *link, unsigned int *class,
499499
struct ata_port *ap = link->ap;
500500
struct ahci_host_priv *hpriv = ap->host->private_data;
501501
struct xgene_ahci_context *ctx = hpriv->plat_data;
502-
void *port_mmio = ahci_port_base(ap);
502+
void __iomem *port_mmio = ahci_port_base(ap);
503503
u32 port_fbs;
504504
u32 port_fbs_save;
505505
u32 retry = 1;

0 commit comments

Comments
 (0)