Commit cdcb3835 authored by Ben Dooks's avatar Ben Dooks Committed by Russell King

[ARM] 4041/1: S3C24XX: Fix sparse errors from VA addresses

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: default avatarBen Dooks <ben-linux@fluff.org>
Signed-off-by: default avatarRussell King <rmk+kernel@arm.linux.org.uk>
parent c16f7bd8
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
*/ */
#ifndef __ASSEMBLY__ #ifndef __ASSEMBLY__
#define S3C2410_ADDR(x) ((void __iomem *)0xF0000000 + (x)) #define S3C2410_ADDR(x) ((void __iomem __force *)0xF0000000 + (x))
#else #else
#define S3C2410_ADDR(x) (0xF0000000 + (x)) #define S3C2410_ADDR(x) (0xF0000000 + (x))
#endif #endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment