From: Dave Young <hidave.darkstar@gmail.com>
To: Andrew Morton <akpm@linux-foundation.org>,
Eric Dumazet <dada1@cosmosbay.com>,
Davide Libenzi <davidel@xmailserver.org>,
Andi Kleen <ak@linux.intel.com>,
Alexey Dobriyan <adobriyan@gmail.com>,
Ingo Molnar <mingo@elte.hu>,
Peter Zijlstra <a.p.zijlstra@chello.nl>,
James Morris <jmorris@namei.org>,
"Eric W. Biederman" <ebiederm@xmission.com>,
linux-kernel@vger.kernel.org
Subject: [PATCH 17/18] sysctl extern cleanup - poll
Date: Sat, 20 Feb 2010 22:22:24 +0800 [thread overview]
Message-ID: <20100220142224.GP3195@darkstar> (raw)
Extern declarations in sysctl.c should be move to their own head file,
and then include them in relavant .c files.
Move epoll_table extern declaration to linux/poll.h
Signed-off-by: Dave Young <hidave.darkstar@gmail.com>
---
include/linux/poll.h | 3 +++
kernel/sysctl.c | 4 +---
2 files changed, 4 insertions(+), 3 deletions(-)
--- linux-2.6.32.orig/include/linux/poll.h 2010-02-20 14:02:15.871592994 +0800
+++ linux-2.6.32/include/linux/poll.h 2010-02-20 14:44:14.138009487 +0800
@@ -12,6 +12,9 @@
#include <linux/fs.h>
#include <asm/uaccess.h>
+#if defined(CONFIG_EPOLL) && defined (CONFIG_SYSCTL)
+extern struct ctl_table epoll_table[];
+#endif
/* ~832 bytes of stack space used max in sys_select/sys_poll before allocating
additional memory. */
#define MAX_STACK_ALLOC 832
--- linux-2.6.32.orig/kernel/sysctl.c 2010-02-20 14:41:41.625522844 +0800
+++ linux-2.6.32/kernel/sysctl.c 2010-02-20 14:43:20.458847237 +0800
@@ -65,6 +65,7 @@
#include <linux/acct.h>
#include <linux/rtmutex.h>
#include <linux/lockdep.h>
+#include <linux/poll.h>
#include <scsi/sg.h>
#include <asm/uaccess.h>
@@ -162,9 +163,6 @@ 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
/* The default sysctl tables: */
reply other threads:[~2010-02-20 14:22 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20100220142224.GP3195@darkstar \
--to=hidave.darkstar@gmail.com \
--cc=a.p.zijlstra@chello.nl \
--cc=adobriyan@gmail.com \
--cc=ak@linux.intel.com \
--cc=akpm@linux-foundation.org \
--cc=dada1@cosmosbay.com \
--cc=davidel@xmailserver.org \
--cc=ebiederm@xmission.com \
--cc=jmorris@namei.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox