diff options
Diffstat (limited to 'backport/backport-include/linux/dma-buf.h')
-rw-r--r-- | backport/backport-include/linux/dma-buf.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/backport/backport-include/linux/dma-buf.h b/backport/backport-include/linux/dma-buf.h index 07ac0b4a..ef1d0d3d 100644 --- a/backport/backport-include/linux/dma-buf.h +++ b/backport/backport-include/linux/dma-buf.h @@ -1,14 +1,14 @@ #ifndef _BACKPORT_DMA_BUF_H__ #define _BACKPORT_DMA_BUF_H__ #include <linux/version.h> -#if LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) +#if LINUX_VERSION_IS_GEQ(3,3,0) #include_next <linux/dma-buf.h> -#endif /* LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) */ +#endif /* LINUX_VERSION_IS_GEQ(3,3,0) */ #include <linux/dma-direction.h> #include <linux/dma-attrs.h> #include <linux/dma-mapping.h> -#if !defined(DEFINE_DMA_BUF_EXPORT_INFO) && LINUX_VERSION_CODE >= KERNEL_VERSION(3,3,0) +#if !defined(DEFINE_DMA_BUF_EXPORT_INFO) && LINUX_VERSION_IS_GEQ(3,3,0) /** * helper macro for exporters; zeros and fills in most common values */ @@ -31,14 +31,14 @@ struct dma_buf_export_info { static inline struct dma_buf *backport_dma_buf_export(const struct dma_buf_export_info *exp_info) { -#if LINUX_VERSION_CODE < KERNEL_VERSION(3,4,0) +#if LINUX_VERSION_IS_LESS(3,4,0) return dma_buf_export(exp_info->priv, (struct dma_buf_ops *)exp_info->ops, exp_info->size, exp_info->flags); -#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,10,0) +#elif LINUX_VERSION_IS_LESS(3,10,0) return dma_buf_export(exp_info->priv, exp_info->ops, exp_info->size, exp_info->flags); -#elif LINUX_VERSION_CODE < KERNEL_VERSION(3,17,0) +#elif LINUX_VERSION_IS_LESS(3,17,0) return dma_buf_export_named(exp_info->priv, exp_info->ops, exp_info->size, exp_info->flags, exp_info->exp_name); |