Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756230Ab0BTOWf (ORCPT ); Sat, 20 Feb 2010 09:22:35 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:64012 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755921Ab0BTOWd (ORCPT ); Sat, 20 Feb 2010 09:22:33 -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=G4cV1Gw62HZUk7At7/MpumWpe9hj7DvDh5dBv8cH2vTH0RvNs76K79byk7S6ZbRBwp Oq1+xREK0vKuYz8UZmDYqUDi6fvo8LU2udR6qz3b/3cB575eC9qMFIn4qLusf3GFTicb VRkmmwzXtQkaoWqxDqSjCZMplkXiOZ4beJVAw= Date: Sat, 20 Feb 2010 22:22:24 +0800 From: Dave Young To: Andrew Morton , Eric Dumazet , Davide Libenzi , Andi Kleen , Alexey Dobriyan , Ingo Molnar , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH 17/18] sysctl extern cleanup - poll Message-ID: <20100220142224.GP3195@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: 1611 Lines: 48 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 | 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 #include +#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 #include #include +#include #include #include @@ -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: */ -- 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/