Commit c409d52b authored by Al Viro's avatar Al Viro Committed by Linus Torvalds

celleb_scc_pciex endianness misannotations

Signed-off-by: default avatarAl Viro <viro@zeniv.linux.org.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 93072457
...@@ -217,7 +217,7 @@ static u##size scc_pciex_in##name(unsigned long port) \ ...@@ -217,7 +217,7 @@ static u##size scc_pciex_in##name(unsigned long port) \
static void scc_pciex_ins##name(unsigned long p, void *b, unsigned long c) \ static void scc_pciex_ins##name(unsigned long p, void *b, unsigned long c) \
{ \ { \
struct iowa_bus *bus = iowa_pio_find_bus(p); \ struct iowa_bus *bus = iowa_pio_find_bus(p); \
u##size *dst = b; \ __le##size *dst = b; \
for (; c != 0; c--, dst++) \ for (; c != 0; c--, dst++) \
*dst = cpu_to_le##size(__scc_pciex_in##name(bus->phb, p)); \ *dst = cpu_to_le##size(__scc_pciex_in##name(bus->phb, p)); \
scc_pciex_io_flush(bus); \ scc_pciex_io_flush(bus); \
...@@ -231,10 +231,11 @@ static void scc_pciex_outs##name(unsigned long p, const void *b, \ ...@@ -231,10 +231,11 @@ static void scc_pciex_outs##name(unsigned long p, const void *b, \
unsigned long c) \ unsigned long c) \
{ \ { \
struct iowa_bus *bus = iowa_pio_find_bus(p); \ struct iowa_bus *bus = iowa_pio_find_bus(p); \
const u##size *src = b; \ const __le##size *src = b; \
for (; c != 0; c--, src++) \ for (; c != 0; c--, src++) \
__scc_pciex_out##name(bus->phb, le##size##_to_cpu(*src), p); \ __scc_pciex_out##name(bus->phb, le##size##_to_cpu(*src), p); \
} }
#define __le8 u8
#define cpu_to_le8(x) (x) #define cpu_to_le8(x) (x)
#define le8_to_cpu(x) (x) #define le8_to_cpu(x) (x)
PCIEX_PIO_FUNC(8, b) PCIEX_PIO_FUNC(8, b)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment