Parcourir la source

microblaze: Fix strict-aliasing rules for in_be32

readl should work with unsigned int instead of unsigned long.

Signed-off-by: Michal Simek <monstr@monstr.eu>
Michal Simek il y a 13 ans
Parent
commit
1fbd0c36da
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      arch/microblaze/include/asm/io.h

+ 1 - 1
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))