From 7ec765efa926f062fc9364e7ab1ba1216a53b3c5 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Tue, 10 Jul 2012 19:00:58 +0300 Subject: [PATCH] compat: Add register_net_sysctl [linux-2.6] (master)$ git describe --contains ab41a2ca v3.5-rc1~109^2~369 Signed-off-by: Vladimir Sokolovsky --- include/linux/compat-3.5.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/linux/compat-3.5.h b/include/linux/compat-3.5.h index 74c8176..badf7d6 100644 --- a/include/linux/compat-3.5.h +++ b/include/linux/compat-3.5.h @@ -240,6 +240,12 @@ do { \ #define net_dbg_ratelimited(fmt, ...) \ net_ratelimited_function(pr_debug, fmt, ##__VA_ARGS__) +static inline int net_sysctl_init(void) { return 0; } +static inline struct ctl_table_header *register_net_sysctl(struct net *net, + const char *path, struct ctl_table *table) +{ + return NULL; +} #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,5,0)) */ #endif /* LINUX_3_5_COMPAT_H */ -- 2.41.0