From: Arnaud Lacombe Date: Tue, 24 Nov 2009 02:25:09 +0000 (-0500) Subject: Add compatibility macro for register_sysctl_table() X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=117d4c91d3eda5b8a1f11a4f8d61ed27f2da18b2;p=~aditr%2Fcompat.git Add compatibility macro for register_sysctl_table() The API was changed on commit 0b4d4147. register_sysctl_table() lost its last argument. Signed-off-by: Arnaud Lacombe --- 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 + +#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 */