Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752602Ab0BUOZp (ORCPT ); Sun, 21 Feb 2010 09:25:45 -0500 Received: from mail-yx0-f193.google.com ([209.85.210.193]:58923 "EHLO mail-yx0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752499Ab0BUOZn (ORCPT ); Sun, 21 Feb 2010 09:25:43 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:subject:message-id:mime-version:content-type :content-disposition:user-agent; b=eKYWti/9emHgYFSzqey3whW5VLClCME6Y4BKnBEx/4FAOsUr5FaE+vgP7kdY+VtT9z VEfDHffDWvbchWUyD4wc35NNsgDbfOGUOVubyyEBP0nYGxVHBehUXHWzB+VvYXcTyluL EnCra3H4IQpEkFvsZlqUfQnSmJkjDEtpTD1XA= Date: Sun, 21 Feb 2010 22:25:34 +0800 From: Dave Young To: Oleg Nesterov , Andrew Morton , Ulrich Drepper , Thomas Gleixner , Roland McGrath , Ingo Molnar , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH -mm 16/17] sysctl extern cleanup - poll Message-ID: <20100221142534.GA3030@darkstar> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.19 (2009-01-05) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1701 Lines: 51 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 --- include/linux/poll.h | 2 ++ kernel/sysctl.c | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) --- linux-2.6.32.orig/include/linux/poll.h 2010-02-21 11:12:11.850112707 +0800 +++ linux-2.6.32/include/linux/poll.h 2010-02-21 11:26:29.549195967 +0800 @@ -10,8 +10,10 @@ #include #include #include +#include #include +extern struct ctl_table epoll_table[]; /* for sysctl */ /* ~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-21 11:23:13.929215242 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-21 11:25:35.455865983 +0800 @@ -72,6 +72,9 @@ #if defined(CONFIG_PROVE_LOCKING) || defined(CONFIG_LOCK_STAT) #include #endif +#ifdef CONFIG_EPOLL +#include +#endif #ifdef CONFIG_CHR_DEV_SG #include #endif @@ -174,9 +177,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: */ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/