This will enable to avoid using compat on the base kernel
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
--- /dev/null
+config COMPAT_RDMA
+ tristate "Compat layer for RDMA"
+ ---help---
+ Provides compat layer to support older kernel versions
#ifndef LINUX_26_COMPAT_H
#define LINUX_26_COMPAT_H
+#include <generated/autoconf.h>
+#ifdef CONFIG_COMPAT_RDMA
+
#define LINUX_BACKPORT(__sym) backport_ ##__sym
/* Include the autogenerated header file */
#include <linux/compat-4.5.h>
#include <linux/compat-4.9.h>
+#endif /* CONFIG_COMPAT_RDMA */
#endif /* LINUX_26_COMPAT_H */