summaryrefslogtreecommitdiff
path: root/include/xen/swiotlb-xen.h
diff options
context:
space:
mode:
authorArnd Bergmann <arnd@arndb.de>2017-10-04 15:51:29 +0200
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-10-05 09:41:48 +0200
commit228969b4764fe2b0f58ef096f63666196f7b4881 (patch)
tree7e5da2c9dfcfb87caa0a713dca0cb710ef21fa3d /include/xen/swiotlb-xen.h
parent079c03f4a915da1279604f88d6c07bf70427ddbc (diff)
fix xen_swiotlb_dma_mmap prototype
xen_swiotlb_dma_mmap was backported from v4.10, but older kernels before commit 00085f1efa38 ("dma-mapping: use unsigned long for dma_attrs") use a different signature: arm/xen/mm.c:202:10: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .mmap = xen_swiotlb_dma_mmap, ^~~~~~~~~~~~~~~~~~~~ arm/xen/mm.c:202:10: note: (near initialization for 'xen_swiotlb_dma_ops.mmap') This adapts the patch to the old calling conventions. Fixes: "swiotlb-xen: implement xen_swiotlb_dma_mmap callback" Signed-off-by: Arnd Bergmann <arnd@arndb.de> Reviewed-by: Stefano Stabellini <sstabellini@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/xen/swiotlb-xen.h')
-rw-r--r--include/xen/swiotlb-xen.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/xen/swiotlb-xen.h b/include/xen/swiotlb-xen.h
index fab4fb9c6442..4d7fdbf20eff 100644
--- a/include/xen/swiotlb-xen.h
+++ b/include/xen/swiotlb-xen.h
@@ -62,5 +62,5 @@ xen_swiotlb_set_dma_mask(struct device *dev, u64 dma_mask);
extern int
xen_swiotlb_dma_mmap(struct device *dev, struct vm_area_struct *vma,
void *cpu_addr, dma_addr_t dma_addr, size_t size,
- unsigned long attrs);
+ struct dma_attrs *attrs);
#endif /* __LINUX_SWIOTLB_XEN_H */