kernel_optimize_test/arch/arm/mach-ixp4xx
Arnd Bergmann c4caa8db4c ARM: ixp4xx: fix ioport_unmap definition
An empty macro definition can cause unexpected behavior, in
case of the ixp4xx ioport_unmap, we get two warnings:

drivers/net/wireless/marvell/libertas/if_cs.c: In function 'if_cs_release':
drivers/net/wireless/marvell/libertas/if_cs.c:826:3: error: suggest braces around empty body in an 'if' statement [-Werror=empty-body]
   ioport_unmap(card->iobase);
drivers/vfio/pci/vfio_pci_rdwr.c: In function 'vfio_pci_vga_rw':
drivers/vfio/pci/vfio_pci_rdwr.c:230:15: error: the omitted middle operand in ?: will always be 'true', suggest explicit middle operand [-Werror=parentheses]
   is_ioport ? ioport_unmap(iomem) : iounmap(iomem);

This uses an inline function to define the macro in a safer way.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Krzysztof Halasa <khalasa@piap.pl>
2017-07-27 22:57:53 +02:00
..
include/mach ARM: ixp4xx: fix ioport_unmap definition 2017-07-27 22:57:53 +02:00
avila-pci.c
avila-setup.c
common-pci.c scripts/spelling.txt: add regsiter -> register spelling mistake 2017-05-08 17:15:13 -07:00
common.c clocksource: Use a plain u64 instead of cycle_t 2016-12-25 11:04:12 +01:00
coyote-pci.c
coyote-setup.c
dsmg600-pci.c
dsmg600-setup.c ARM: ixp4xx: drop duplicate header gpio.h 2016-11-26 00:21:50 +01:00
fsg-pci.c
fsg-setup.c ARM: 7998/1: IXP4xx: remove deprecated IRQF_DISABLED 2014-03-12 10:32:33 +00:00
gateway7001-pci.c
gateway7001-setup.c
goramo_mlr.c IXP4xx: Fix Goramo Multilink GPIO conversion. 2014-03-26 23:04:20 +01:00
gtwx5715-pci.c
gtwx5715-setup.c
ixdp425-pci.c
ixdp425-setup.c ARM: make use of nand_set/get_controller_data() helpers 2016-01-07 10:23:40 -08:00
ixdpg425-pci.c
ixp4xx_npe.c
ixp4xx_qmgr.c
Kconfig
Makefile
Makefile.boot
miccpt-pci.c
nas100d-pci.c
nas100d-setup.c ARM: 7998/1: IXP4xx: remove deprecated IRQF_DISABLED 2014-03-12 10:32:33 +00:00
nslu2-pci.c
nslu2-setup.c ARM: 7998/1: IXP4xx: remove deprecated IRQF_DISABLED 2014-03-12 10:32:33 +00:00
omixp-setup.c ARM: ixp4xx/omixp: always include linux/leds.h 2014-03-21 18:23:25 +01:00
vulcan-pci.c
vulcan-setup.c
wg302v2-pci.c
wg302v2-setup.c