Skip to contentSkip to conversation

compat: add compat-2.6.35.h and IW_HANDLER

PATCH Pavel Roskin 1 participant 1 message Mar 24, 2010

lore
Share & tools
lore
#0 lore raw

compat: add compat-2.6.35.h and IW_HANDLER

---

I assume the patch that introduced IW_HANDLER won't be applied to 2.6.34, so the definition belongs to a new file, compat-2.6.35.h

 include/linux/compat-2.6.35.h |   13 +++++++++++++
 include/linux/compat-2.6.h    |    1 +
 2 files changed, 14 insertions(+), 0 deletions(-)
 create mode 100644 include/linux/compat-2.6.35.h
(quoted diff) +0 -0

b/include/linux/compat-2.6.35.h
new file mode 100644
index 0000000..7387c46

include/linux/compat-2.6.35.h new file +13 -0
@@ -0,0 +1,13 @@
+#ifndef LINUX_26_35_COMPAT_H
+#define LINUX_26_35_COMPAT_H
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35))
+
+#define IW_HANDLER(id, func)			\
+	[IW_IOCTL_IDX(id)] = func
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
+
+#endif /* LINUX_26_35_COMPAT_H */
include/linux/compat-2.6.h +1 -0
index ceca997..6171cd9 100644
@@ -27,5 +27,6 @@
 #include <linux/compat-2.6.32.h>
 #include <linux/compat-2.6.33.h>
 #include <linux/compat-2.6.34.h>
+#include <linux/compat-2.6.35.h>
 
 #endif /* LINUX_26_COMPAT_H */