]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ata: ahci_xgene: use correct type for port mmio address
authorDamien Le Moal <damien.lemoal@opensource.wdc.com>
Tue, 4 Jan 2022 08:49:54 +0000 (17:49 +0900)
committerDamien Le Moal <damien.lemoal@opensource.wdc.com>
Fri, 14 Jan 2022 06:17:16 +0000 (15:17 +0900)
commit2bce69072a0db6c3444650023c6f35bfd7a23d29
tree06167fa671e830c909efa3310041624117de3ef2
parentf8bc938ee6c60ec862fb5311789b6e277555f0b0
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 <damien.lemoal@opensource.wdc.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
drivers/ata/ahci_xgene.c