]> git.openfabrics.org - compat-rdma/compat.git/commitdiff
Adding missing compat-3.19.h and compat-4.11.h
authorVladimir Sokolovsky <vlad@mellanox.com>
Wed, 1 Aug 2018 14:46:32 +0000 (09:46 -0500)
committerVladimir Sokolovsky <vlad@mellanox.com>
Wed, 1 Aug 2018 14:46:32 +0000 (09:46 -0500)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.19.h [new file with mode: 0644]
include/linux/compat-4.11.h [new file with mode: 0644]

diff --git a/include/linux/compat-3.19.h b/include/linux/compat-3.19.h
new file mode 100644 (file)
index 0000000..fc9452d
--- /dev/null
@@ -0,0 +1,15 @@
+#ifndef LINUX_3_19_COMPAT_H
+#define LINUX_3_19_COMPAT_H
+
+#include <linux/version.h>
+#include "../../compat/config.h"
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0))
+
+#ifndef writel_relaxed
+#define writel_relaxed writel
+#endif
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,19,0)) */
+
+#endif /* LINUX_3_19_COMPAT_H */
diff --git a/include/linux/compat-4.11.h b/include/linux/compat-4.11.h
new file mode 100644 (file)
index 0000000..76c428b
--- /dev/null
@@ -0,0 +1,14 @@
+#ifndef LINUX_4_11_COMPAT_H
+#define LINUX_4_11_COMPAT_H
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0))
+
+#ifndef ETH_P_IBOE
+#define ETH_P_IBOE     0x8915          /* Infiniband over Ethernet     */
+#endif
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(4,11,0)) */
+
+#endif /* LINUX_4_11_COMPAT_H */