linux/arch/arm/mach-ixp4xx/include/mach
Arnd Bergmann 1aeb3c5c48 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>
2015-02-18 12:20:27 +01:00
..
cpu.h ARM: ixp4xx: use __iomem pointers for MMIO 2012-09-19 15:19:13 +02:00
entry-macro.S ARM: remove disable_fiq and arch_ret_to_user macros 2012-02-21 17:05:18 -06:00
hardware.h ARM: dma-mapping: convert ARCH_HAS_DMA_SET_COHERENT_MASK to kconfig symbol 2012-03-25 14:35:58 -05:00
io.h ARM: ixp4xx: fix {in,out}s{bwl} data types 2015-02-18 12:20:27 +01:00
irqs.h IXP4xx: Introduce IXP4XX_GPIO_IRQ(n) macro and convert IXP4xx platform files. 2009-12-05 16:58:41 +01:00
ixp4xx-regs.h IXP4xx: map CPU config registers within VMALLOC region. 2012-11-22 03:36:38 +00:00
ixp46x_ts.h ixp4xx_eth: Support the get_ts_info ethtool method. 2012-04-04 05:28:46 -04:00
npe.h IXP4xx: Ensure index is positive in irq_to_gpio() and npe_request(). 2009-12-05 16:58:38 +01:00
platform.h ARM: ixp4xx: stop broadcasting the custom GPIO API 2013-09-27 14:15:44 +02:00
qmgr.h IXP4xx: use __iomem for MMIO 2012-11-22 03:36:45 +00:00
udc.h ARM: move udc_pxa2xx.h to linux/platform_data 2012-11-16 11:35:30 +00:00
uncompress.h ARM: remove unused arch_decomp_wdog() 2013-01-11 10:54:03 +08:00