Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

microblaze: Use proper casting for inb/inw/inl in io.h

We are going to move to asm-generic/io.h but
let's fix compilation warnings first for 3.10.

Warning message:
arch/microblaze/include/asm/io.h:126:26: warning: cast to
pointer from integer of different size [-Wint-to-pointer-cast]
#define inb(port) readb((u8 *)((port)))
...

Signed-off-by: Michal Simek <michal.simek@xilinx.com>

+3 -3
+3 -3
arch/microblaze/include/asm/io.h
··· 123 123 * inb_p/inw_p/... 124 124 * The macros don't do byte-swapping. 125 125 */ 126 - #define inb(port) readb((u8 *)((port))) 126 + #define inb(port) readb((u8 *)((unsigned long)(port))) 127 127 #define outb(val, port) writeb((val), (u8 *)((unsigned long)(port))) 128 - #define inw(port) readw((u16 *)((port))) 128 + #define inw(port) readw((u16 *)((unsigned long)(port))) 129 129 #define outw(val, port) writew((val), (u16 *)((unsigned long)(port))) 130 - #define inl(port) readl((u32 *)((port))) 130 + #define inl(port) readl((u32 *)((unsigned long)(port))) 131 131 #define outl(val, port) writel((val), (u32 *)((unsigned long)(port))) 132 132 133 133 #define inb_p(port) inb((port))