summaryrefslogtreecommitdiff
path: root/arch/arm/mach-rockchip
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2015-01-26 13:19:23 +0100
committerArnd Bergmann <arnd@arndb.de>2015-02-18 12:20:27 +0100
commit1aeb3c5c48bebf0bb608c861612c76bdcd0205e6 (patch)
treec81083db50310297b16950c41b600d70a4dffc6f /arch/arm/mach-rockchip
parentd76f733ddad6ebc5166675a77824673588797202 (diff)
downloadlwn-1aeb3c5c48bebf0bb608c861612c76bdcd0205e6.tar.gz
lwn-1aeb3c5c48bebf0bb608c861612c76bdcd0205e6.zip
ARM: ixp4xx: fix {in,out}s{bwl} data types
Most platforms use void pointer arguments in these functions, but ixp4xx does not, which triggers lots of warnings in device drivers like: net/ethernet/8390/ne2k-pci.c: In function 'ne2k_pci_get_8390_hdr': net/ethernet/8390/ne2k-pci.c:503:3: warning: passing argument 2 of 'insw' from incompatible pointer type insw(NE_BASE + NE_DATAPORT, hdr, sizeof(struct e8390_pkt_hdr)>>1); ^ In file included from include/asm/io.h:214:0, from /git/arm-soc/include/linux/io.h:22, from /git/arm-soc/include/linux/pci.h:31, from net/ethernet/8390/ne2k-pci.c:48: mach-ixp4xx/include/mach/io.h:316:91: note: expected 'u16 *' but argument is of type 'struct e8390_pkt_hdr *' static inline void insw(u32 io_addr, u16 *vaddr, u32 count) Fixing the drivers seems hopeless, so this changes the ixp4xx code to do the same as the others to avoid the warnings. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Krzysztof Halasa <khalasa@piap.pl> Cc: Imre Kaloz <kaloz@openwrt.org>
Diffstat (limited to 'arch/arm/mach-rockchip')
0 files changed, 0 insertions, 0 deletions