From 1fbd0c36daeb2340210bbd68ee2f62f26a8bdfa0 Mon Sep 17 00:00:00 2001 From: Michal Simek Date: Tue, 18 Oct 2011 11:33:07 +0200 Subject: [PATCH] microblaze: Fix strict-aliasing rules for in_be32 readl should work with unsigned int instead of unsigned long. Signed-off-by: Michal Simek --- arch/microblaze/include/asm/io.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 7e190d15c6..584cbce358 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)) -- 2.25.1