From: Daniel Silverstone Date: Tue, 10 Feb 2009 12:39:52 +0000 (+0100) Subject: [ARM] 5376/1: S3C24XX: Fix sparse errors in platform uncompress.h X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=1144d6535fdea5133875dab4a0be5515ae5cb681;p=linux-2.6-omap-h63xx.git [ARM] 5376/1: S3C24XX: Fix sparse errors in platform uncompress.h Ensure __iomem attribute is __force 'd off in the minimal __raw_writel() implementation. Signed-off-by: Simtec Linux Team Signed-off-by: Ben Dooks Signed-off-by: Russell King --- diff --git a/arch/arm/plat-s3c/include/plat/uncompress.h b/arch/arm/plat-s3c/include/plat/uncompress.h index 6061de87f22..dc66a477f62 100644 --- a/arch/arm/plat-s3c/include/plat/uncompress.h +++ b/arch/arm/plat-s3c/include/plat/uncompress.h @@ -90,7 +90,10 @@ static inline void flush(void) { } -#define __raw_writel(d,ad) do { *((volatile unsigned int *)(ad)) = (d); } while(0) +#define __raw_writel(d, ad) \ + do { \ + *((volatile unsigned int __force *)(ad)) = (d); \ + } while (0) /* CONFIG_S3C_BOOT_WATCHDOG *