Skip to contentSkip to conversation

microblaze: Fix strict-aliasign rules for in_be32

PATCH Superseded Michal Simek 2 participants 2 messages Oct 18, 2011 Microblaze architecture

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore

Michal Simek

author maintainer
#0 lore raw

PATCH v2 1/1 microblaze: Fix strict-aliasign rules for in_be32

readl should work with unsigned int instead of unsigned long.

---
v2: Fix coding style issue.

---
 arch/microblaze/include/asm/io.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
arch/microblaze/include/asm/io.h +1 -1
index 7e190d1..584cbce 100644
@@ -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))
Signature · 1 line
1.7.5.4
#1 lore raw

PATCH v2 1/1 microblaze: Fix strict-aliasign rules for in_be32

Dear Michal Simek,

Quoted 1 line · In message <[email protected]> you wrote:

readl should work with unsigned int instead of unsigned long.

Please also fix the typo in the Subject: s/aliasign/aliasing/

Best regards,

Wolfgang Denk

Signature · 6 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Even historians fail to learn from history -- they repeat the same
mistakes.
	-- John Gill, "Patterns of Force", stardate 2534.7