From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michal Simek Date: Tue, 18 Oct 2011 12:22:09 +0200 Subject: [U-Boot] [PATCH 1/2] microblaze: Fix strict-aliasign rules for in_be32 Message-ID: <1318933330-17883-1-git-send-email-monstr@monstr.eu> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de readl should work with unsigned int instead of unsigned long. Signed-off-by: Michal Simek --- arch/microblaze/include/asm/io.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/microblaze/include/asm/io.h b/arch/microblaze/include/asm/io.h index 7e190d1..187ae73 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)) -- 1.7.5.4