microblaze: Fix strict-aliasing rules for in_be32
Michal Simek
maintainerPATCH v3 1/1 microblaze: Fix strict-aliasing rules for in_be32
readl should work with unsigned int instead of unsigned long.
Signed-off-by Michal Simek <[email protected]>
---
v2: Fix coding style issue.
v3: Fix the typo the in subject: s/aliasign/aliasing/
--- arch/microblaze/include/asm/io.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
arch/microblaze/include/asm/io.h +1 -1
@@ -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