summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@hauke-m.de>2014-06-08 17:48:47 +0200
committerHauke Mehrtens <hauke@hauke-m.de>2014-06-16 20:23:38 +0200
commit6e1b080e83f1537d8d198917180d0a8bdfd7e0c9 (patch)
tree9f558c19e886e6b35ce0b8f64144e5e0bdc103e0
parent060d904cd4b42db7a034cdee832732edb172f3c5 (diff)
backports: remove parameter from dma_buf_export()
dma_buf_export() got a new parameter which is not available in older kernel versions. Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
-rw-r--r--backport/backport-include/linux/dma-buf.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/backport/backport-include/linux/dma-buf.h b/backport/backport-include/linux/dma-buf.h
index 363b86fe..85a15310 100644
--- a/backport/backport-include/linux/dma-buf.h
+++ b/backport/backport-include/linux/dma-buf.h
@@ -5,4 +5,13 @@
#include_next <linux/dma-buf.h>
#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) */
+#if LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0)
+#define dma_buf_export(priv, ops, size, flags, resv) \
+ dma_buf_export(priv, ops, size, flags)
+#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,16,0)
+#undef dma_buf_export
+#define dma_buf_export(priv, ops, size, flags, resv) \
+ dma_buf_export_named(priv, ops, size, flags, KBUILD_MODNAME)
+#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) */
+
#endif /* _BACKPORT_DMA_BUF_H__ */