]> git.baikalelectronics.ru Git - kernel.git/commit
[ARM] 3083/1: include/asm-arm/arch-ixp4xx/io.h: eliminate warnings for pointer passed...
authorJohn Bowler <jbowler@acm.org>
Wed, 2 Nov 2005 11:55:12 +0000 (11:55 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Wed, 2 Nov 2005 11:55:12 +0000 (11:55 +0000)
commit038f9aea8de0f14b49c868ad7d976994a45a0548
tree00e947e6abd3ec64ac025112121440160a783cf3
parent3dfbc9eadf355e75eed0c50020c25c89ca5063ef
[ARM] 3083/1: include/asm-arm/arch-ixp4xx/io.h: eliminate warnings for pointer passed to integral function argument

Patch from John Bowler

Fix for a compiler warning, this wasn't apparent in 2.6.12, I
believe the compiler options have been changed (somewhere) so
that passing a (void*) to a (u32) argument is now warned.

This accounts for the majority of the warnings in my builds of
the 2.6.14 kernel for NSLU2.

The patch changes pointer parameters declared as u32 to be
declared as either, for read parameters:

const volatile void __iomem *

and for write parameters:

volatile void __iomem *

Signed-off-by: John Bowler <jbowler@acm.org>
Signed-off-by: Deepak Saxena <dsaxena@plexity.net>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-ixp4xx/io.h