Re: [PATCH v2 21/22] ata: ahci_xgene: use correct type for port mmio address

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 1/4/22 11:58 AM, Damien Le Moal wrote:
> 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@xxxxxxxxxxxxxxxxxx>
> ---
>  drivers/ata/ahci_xgene.c | 6 +++---
>  1 file changed, 3 insertions(+), 3 deletions(-)
> 
Reviewed-by: Hannes Reinecke <hare@xxxxxxx>

Cheers,

Hannes
-- 
Dr. Hannes Reinecke		           Kernel Storage Architect
hare@xxxxxxx			                  +49 911 74053 688
SUSE Software Solutions Germany GmbH, Maxfeldstr. 5, 90409 Nürnberg
HRB 36809 (AG Nürnberg), GF: Felix Imendörffer



[Index of Archives]     [Linux Filesystems]     [Linux SCSI]     [Linux RAID]     [Git]     [Kernel Newbies]     [Linux Newbie]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Samba]     [Device Mapper]

  Powered by Linux