]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
Add compatibility macro for register_sysctl_table()
authorArnaud Lacombe <lacombar@gmail.com>
Tue, 24 Nov 2009 02:25:09 +0000 (21:25 -0500)
committerLuis R. Rodriguez <lrodriguez@atheros.com>
Tue, 1 Dec 2009 07:16:20 +0000 (23:16 -0800)
The API was changed on commit 0b4d4147. register_sysctl_table() lost its
last
argument.

Signed-off-by: Arnaud Lacombe <lacombar@gmail.com>
compat-2.6.21.h

index c185cfb0cabc6210d8fb5cf775985d736e93dac0..263ebd2fdc00b4d4a2919e07797e17ab82c2f619 100644 (file)
@@ -7,6 +7,13 @@
 /* Compat work for 2.6.21 */
 #if (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21))
 
+#include <linux/sysctl.h>
+
+#define register_sysctl_table(table)                           \
+       ({                                                      \
+               register_sysctl_table((table), 0);              \
+       })
+
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(2,6,21)) */
 
 #endif /* LINUX_26_21_COMPAT_H */