[ARM] 4041/1: S3C24XX: Fix sparse errors from VA addresses
authorBen Dooks <ben-linux@fluff.org>
Sun, 17 Dec 2006 19:15:13 +0000 (20:15 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sun, 17 Dec 2006 23:37:52 +0000 (23:37 +0000)
Fix address-space conversion errors from passing addresses
generated from include/asm-arm/arch-s3c2410/map.h by adding
an __force argument to the `void __iomem *` for all the
virtual addresses.

Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
include/asm-arm/arch-s3c2410/map.h

index 4ef4eeb..6746114 100644 (file)
@@ -25,7 +25,7 @@
  */
 
 #ifndef __ASSEMBLY__
-#define S3C2410_ADDR(x)          ((void __iomem *)0xF0000000 + (x))
+#define S3C2410_ADDR(x)          ((void __iomem __force *)0xF0000000 + (x))
 #else
 #define S3C2410_ADDR(x)          (0xF0000000 + (x))
 #endif