From: Michal Simek Date: Tue, 18 Oct 2011 09:33:07 +0000 (+0200) Subject: microblaze: Fix strict-aliasing rules for in_be32 X-Git-Tag: v2011.12-rc1~344^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0;p=pandora-u-boot.git microblaze: Fix strict-aliasing rules for in_be32 readl should work with unsigned int instead of unsigned long. Signed-off-by: Michal Simek --- diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 7e190d15c60..584cbce358c 100644 --- a/arch/microblaze/include/asm/io.h +++ b/arch/microblaze/include/asm/io.h @@ -25,7 +25,7 @@ #define readw(addr) \ ({ unsigned short __v = (*(volatile unsigned short *) (addr)); __v; }) #define readl(addr) \ - ({ unsigned long __v = (*(volatile unsigned long *) (addr)); __v; }) + ({ unsigned int __v = (*(volatile unsigned int *) (addr)); __v; }) #define writeb(b, addr) \ (void)((*(volatile unsigned char *) (addr)) = (b))