linux/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
Kconfig
Makefile
Makefile.boot
avila-pci.c
avila-setup.c
common-pci.c
common.c
coyote-pci.c
coyote-setup.c
dsmg600-pci.c
dsmg600-setup.c
fsg-pci.c
fsg-setup.c
gateway7001-pci.c
gateway7001-setup.c
goramo_mlr.c
gtwx5715-pci.c
gtwx5715-setup.c
ixdp425-pci.c
ixdp425-setup.c
ixdpg425-pci.c
ixp4xx_npe.c
ixp4xx_qmgr.c
miccpt-pci.c
nas100d-pci.c
nas100d-setup.c
nslu2-pci.c
nslu2-setup.c
omixp-setup.c
vulcan-pci.c
vulcan-setup.c
wg302v2-pci.c
wg302v2-setup.c