X-Git-Url: http://pileus.org/git/?a=blobdiff_plain;f=kernel%2Fsysctl.c;h=f88552c6d2275be1216187f07b1e0e1b22b93af2;hb=e799d0bce6b191de6e96e556528243c1d73303ca;hp=6b005e4912b557e849f1576ff3cba2827ce8f972;hpb=7ac03db84baa204d7d280401ed65842541ed1078;p=~andy%2Flinux diff --git a/kernel/sysctl.c b/kernel/sysctl.c index 6b005e4912b..f88552c6d22 100644 --- a/kernel/sysctl.c +++ b/kernel/sysctl.c @@ -44,6 +44,7 @@ #include #include #include +#include #include #include #include @@ -131,6 +132,9 @@ static int min_percpu_pagelist_fract = 8; static int ngroups_max = NGROUPS_MAX; +#ifdef CONFIG_INOTIFY_USER +#include +#endif #ifdef CONFIG_SPARC #include #endif @@ -207,9 +211,6 @@ static struct ctl_table fs_table[]; static struct ctl_table debug_table[]; static struct ctl_table dev_table[]; extern struct ctl_table random_table[]; -#ifdef CONFIG_INOTIFY_USER -extern struct ctl_table inotify_table[]; -#endif #ifdef CONFIG_EPOLL extern struct ctl_table epoll_table[]; #endif @@ -1712,10 +1713,7 @@ static __init int sysctl_init(void) { sysctl_set_parent(NULL, root_table); #ifdef CONFIG_SYSCTL_SYSCALL_CHECK - { - int err; - err = sysctl_check_table(current->nsproxy, root_table); - } + sysctl_check_table(current->nsproxy, root_table); #endif return 0; }