]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
compat: move kparam_{block,unblock}_sysfs_write
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 6 Jun 2010 09:12:25 +0000 (11:12 +0200)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Sun, 6 Jun 2010 09:19:49 +0000 (02:19 -0700)
kparam_block_sysfs_write and kparam_unblock_sysfs_write are not in
kernel 2.6.35, move them to backport from kernel 2.6.36.

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
include/linux/compat-2.6.35.h
include/linux/compat-2.6.36.h [new file with mode: 0644]
include/linux/compat-2.6.h

index b38d6deff4a112f8f0434c5fad16fbb5c6180977..886815d5f69e398d15f47be4e4cf764ebbae20a8 100644 (file)
@@ -23,9 +23,6 @@ static inline wait_queue_head_t *sk_sleep(struct sock *sk)
        return sk->sk_sleep;
 }
 
-#define kparam_block_sysfs_write(a)
-#define kparam_unblock_sysfs_write(a)
-
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,35)) */
 
 #endif /* LINUX_26_35_COMPAT_H */
diff --git a/include/linux/compat-2.6.36.h b/include/linux/compat-2.6.36.h
new file mode 100644 (file)
index 0000000..0307108
--- /dev/null
@@ -0,0 +1,13 @@
+#ifndef LINUX_26_36_COMPAT_H
+#define LINUX_26_36_COMPAT_H
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36))
+
+#define kparam_block_sysfs_write(a)
+#define kparam_unblock_sysfs_write(a)
+
+#endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,36)) */
+
+#endif /* LINUX_26_36_COMPAT_H */
index 6171cd9a26808a22d2d4434ef430692de56638b1..ef51195f7b9dced76793cd46344010c437fa65ff 100644 (file)
@@ -28,5 +28,6 @@
 #include <linux/compat-2.6.33.h>
 #include <linux/compat-2.6.34.h>
 #include <linux/compat-2.6.35.h>
+#include <linux/compat-2.6.36.h>
 
 #endif /* LINUX_26_COMPAT_H */