linux_dsm_epyc7002/arch/arm/mach-ixp4xx/include/mach
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
..
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 ioport_unmap definition 2017-07-27 22:57:53 +02: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 usb: gadget: pxa25x_udc: move register definitions from arch 2016-03-04 15:14:28 +02: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: Show proper respect for Heinrich Hertz by using the correct unit for frequency 2015-05-14 16:22:05 +01: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