diff mbox

compat: add compat-2.6.35.h and IW_HANDLER

Message ID 1269465817.26368.5.camel@mj (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Pavel Roskin March 24, 2010, 9:23 p.m. UTC
None
diff mbox

Patch

diff --git a/include/linux/compat-2.6.35.h
b/include/linux/compat-2.6.35.h
new file mode 100644
index 0000000..7387c46
--- /dev/null
+++ b/include/linux/compat-2.6.35.h
@@ -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 */
diff --git a/include/linux/compat-2.6.h b/include/linux/compat-2.6.h
index ceca997..6171cd9 100644
--- a/include/linux/compat-2.6.h
+++ b/include/linux/compat-2.6.h
@@ -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 */