Search Linux Wireless

[PATCH 08/13] Add compatibility macro for register_sysctl_table()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The API was changed on commit 0b4d4147. register_sysctl_table() lost its
last
argument.

Signed-off-by: Arnaud Lacombe <lacombar@xxxxxxxxx>
---
 compat-2.6.21.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/compat-2.6.21.h b/compat-2.6.21.h
index c185cfb..263ebd2 100644
--- a/compat-2.6.21.h
+++ b/compat-2.6.21.h
@@ -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 */
-- 
1.6.3.3.385.g60647.dirty


--
To unsubscribe from this list: send the line "unsubscribe linux-wireless" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Host AP]     [ATH6KL]     [Linux Bluetooth]     [Linux Netdev]     [Kernel Newbies]     [Linux Kernel]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Device Mapper]
  Powered by Linux