aboutsummaryrefslogtreecommitdiff
path: root/drivers/misc/mic/bus/vop_bus.h
diff options
context:
space:
mode:
authorGravatar Vincent Whitchurch <vincent.whitchurch@axis.com> 2019-02-22 16:30:49 +0100
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2019-02-26 12:54:55 +0100
commitfbc63864fa13aea0ea2a0753aa76d4897f3bc30f (patch)
treeb20eef9f47f765bfb2a9dc906ed46d26438b18b0 /drivers/misc/mic/bus/vop_bus.h
parentmic: vop: Cast pointers to unsigned long (diff)
downloadlinux-fbc63864fa13aea0ea2a0753aa76d4897f3bc30f.tar.gz
linux-fbc63864fa13aea0ea2a0753aa76d4897f3bc30f.tar.bz2
linux-fbc63864fa13aea0ea2a0753aa76d4897f3bc30f.zip
mic: Rename ioremap pointer to remap
Some architectures (like MIPS) implement ioremap as a macro, and this leads to conflicts with the ioremap function pointer in various mic structures. drivers/misc/mic/vop/vop_vringh.c: In function 'vop_virtio_init_post': drivers/misc/mic/vop/vop_vringh.c:86:13: error: macro "ioremap" passed 3 arguments, but takes just 2 Rename ioremap to remap to fix this. Likewise for iounmap. Signed-off-by: Vincent Whitchurch <vincent.whitchurch@axis.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/mic/bus/vop_bus.h')
-rw-r--r--drivers/misc/mic/bus/vop_bus.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/misc/mic/bus/vop_bus.h b/drivers/misc/mic/bus/vop_bus.h
index fff7a865d721..cf5f3fae573c 100644
--- a/drivers/misc/mic/bus/vop_bus.h
+++ b/drivers/misc/mic/bus/vop_bus.h
@@ -87,8 +87,8 @@ struct vop_driver {
* @get_dp: Get access to the virtio device page used by the self
* node to add/remove/configure virtio devices.
* @send_intr: Send an interrupt to the peer node on a specified doorbell.
- * @ioremap: Map a buffer with the specified DMA address and length.
- * @iounmap: Unmap a buffer previously mapped.
+ * @remap: Map a buffer with the specified DMA address and length.
+ * @unmap: Unmap a buffer previously mapped.
* @dma_filter: The DMA filter function to use for obtaining access to
* a DMA channel on the peer node.
*/
@@ -104,9 +104,9 @@ struct vop_hw_ops {
void __iomem * (*get_remote_dp)(struct vop_device *vpdev);
void * (*get_dp)(struct vop_device *vpdev);
void (*send_intr)(struct vop_device *vpdev, int db);
- void __iomem * (*ioremap)(struct vop_device *vpdev,
+ void __iomem * (*remap)(struct vop_device *vpdev,
dma_addr_t pa, size_t len);
- void (*iounmap)(struct vop_device *vpdev, void __iomem *va);
+ void (*unmap)(struct vop_device *vpdev, void __iomem *va);
};
struct vop_device *