From 117d4c91d3eda5b8a1f11a4f8d61ed27f2da18b2 Mon Sep 17 00:00:00 2001 From: Arnaud Lacombe Date: Mon, 23 Nov 2009 21:25:09 -0500 Subject: [PATCH] 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 --- compat-2.6.21.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/compat-2.6.21.h b/compat-2.6.21.h index c185cfb0cabc..263ebd2fdc00 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 */ -- 2.30.2