linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Pavel Roskin <proski@gnu.org>
To: "Luis R. Rodriguez" <mcgrof@gmail.com>, linux-wireless@vger.kernel.org
Subject: compat: add compat-2.6.35.h and IW_HANDLER
Date: Wed, 24 Mar 2010 17:23:37 -0400	[thread overview]
Message-ID: <1269465817.26368.5.camel@mj> (raw)

compat: add compat-2.6.35.h and IW_HANDLER

Signed-off-by: Pavel Roskin <proski@gnu.org>
---

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

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 */

                 reply	other threads:[~2010-03-24 21:23 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1269465817.26368.5.camel@mj \
    --to=proski@gnu.org \
    --cc=linux-wireless@vger.kernel.org \
    --cc=mcgrof@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).