提交 d14f1729 编写于 作者: D Dave Young 提交者: Eric Paris

sysctl extern cleanup: inotify

Extern declarations in sysctl.c should be move to their own head file, and
then include them in relavant .c files.

Move inotify_table extern declaration to linux/inotify.h
Signed-off-by: NDave Young <hidave.darkstar@gmail.com>
Signed-off-by: NAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: NEric Paris <eparis@redhat.com>
上级 6e006701
...@@ -69,4 +69,9 @@ struct inotify_event { ...@@ -69,4 +69,9 @@ struct inotify_event {
#define IN_CLOEXEC O_CLOEXEC #define IN_CLOEXEC O_CLOEXEC
#define IN_NONBLOCK O_NONBLOCK #define IN_NONBLOCK O_NONBLOCK
#ifdef __KERNEL__
#include <linux/sysctl.h>
extern struct ctl_table inotify_table[]; /* for sysctl */
#endif
#endif /* _LINUX_INOTIFY_H */ #endif /* _LINUX_INOTIFY_H */
...@@ -131,6 +131,9 @@ static int min_percpu_pagelist_fract = 8; ...@@ -131,6 +131,9 @@ static int min_percpu_pagelist_fract = 8;
static int ngroups_max = NGROUPS_MAX; static int ngroups_max = NGROUPS_MAX;
#ifdef CONFIG_INOTIFY_USER
#include <linux/inotify.h>
#endif
#ifdef CONFIG_SPARC #ifdef CONFIG_SPARC
#include <asm/system.h> #include <asm/system.h>
#endif #endif
...@@ -207,9 +210,6 @@ static struct ctl_table fs_table[]; ...@@ -207,9 +210,6 @@ static struct ctl_table fs_table[];
static struct ctl_table debug_table[]; static struct ctl_table debug_table[];
static struct ctl_table dev_table[]; static struct ctl_table dev_table[];
extern struct ctl_table random_table[]; extern struct ctl_table random_table[];
#ifdef CONFIG_INOTIFY_USER
extern struct ctl_table inotify_table[];
#endif
#ifdef CONFIG_EPOLL #ifdef CONFIG_EPOLL
extern struct ctl_table epoll_table[]; extern struct ctl_table epoll_table[];
#endif #endif
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册