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 c185cfb..263ebd2 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 */