[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <16633577.GiaBADujtQ@wuerfel>
Date: Tue, 28 Oct 2014 22:04:38 +0100
From: Arnd Bergmann <arnd@...db.de>
To: Stefan Hengelein <stefan.hengelein@....de>
Cc: linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
kaloz@...nwrt.org, khalasa@...p.pl, linux@....linux.org.uk
Subject: Re: [PATCH] ARM: ixp4xx: remove compilation warnings in io.h
On Sunday 19 October 2014 19:49:45 Stefan Hengelein wrote:
> When arch/arm/mach-ixp4xx/common-pci.c is compiled, two warnings
> occur:
>
> arch/arm/mach-ixp4xx/include/mach/io.h:144: warning: passing argument 1 of '__raw_readb' makes pointer from integer without a cast
> arch/arm/mach-ixp4xx/include/mach/io.h:79: warning: passing argument 2 of '__raw_writeb' makes pointer from integer without a cast
>
> Both functions expect an 'volatile void __iomem *' but get an u32.
> The 'u32 addr' variable is initialized with the address of an
> 'volatile void __iomem *' pointer. Passing the pointer
> directly, avoids the warning and semantics are preserved.
>
> This warning was found with vampyr.
>
> Signed-off-by: Stefan Hengelein <stefan.hengelein@....de>
Applied on fixes branch, thanks!
Arnd
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists