1 #ifndef LINUX_4_1_COMPAT_H
2 #define LINUX_4_1_COMPAT_H
4 #include <linux/version.h>
6 #if (LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0))
7 #include "../../compat/config.h"
8 #include <linux/dma-mapping.h>
11 #define dma_rmb() rmb()
15 #define dma_wmb() wmb()
18 #include <linux/cpumask.h>
20 #define cpumask_local_spread LINUX_BACKPORT(cpumask_local_spread)
23 static inline unsigned int cpumask_local_spread(unsigned int i, int node)
28 unsigned int cpumask_local_spread(unsigned int i, int node);
31 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,1,0)) */
33 #endif /* LINUX_4_1_COMPAT_H */