Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755980Ab0BTOPo (ORCPT ); Sat, 20 Feb 2010 09:15:44 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:64619 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755866Ab0BTOPn (ORCPT ); Sat, 20 Feb 2010 09:15: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=pPCOzE6LVcj1oC4eKP0GUsacS6kELdYR39tjjdAFNEq+R9WOJr4tVIqAJbdv5LqRIG iHzYS/URzAZsLS2dQ3ljAk37RpbnfBukAUouufQx8rq89/D68r3QQmpXz0RX52ufbgeK OuJ3DcViIuvb9mtwvtg/7URE3pewAKv0FiiwM= Date: Sat, 20 Feb 2010 22:15:34 +0800 From: Dave Young To: Al Viro , Ingo Molnar , Andrew Morton , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH 09/18] sysctl extern cleanup - file nr Message-ID: <20100220141534.GH3195@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: 1560 Lines: 46 Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files. Move sysctl_nr_open_min, sysctl_nr_open_max extern declarations to linux/file.h Signed-off-by: Dave Young --- include/linux/file.h | 3 +++ kernel/sysctl.c | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) --- linux-2.6.32.orig/include/linux/file.h 2010-02-20 14:02:22.601592643 +0800 +++ linux-2.6.32/include/linux/file.h 2010-02-20 14:23:05.188136249 +0800 @@ -9,6 +9,9 @@ #include #include +#ifdef CONFIG_SYSCTL +extern int sysctl_nr_open_min, sysctl_nr_open_max; +#endif struct file; extern void __fput(struct file *); --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-20 14:17:53.132332896 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-20 14:22:30.728971346 +0800 @@ -60,6 +60,7 @@ #include #include #include +#include #include #include @@ -74,7 +75,6 @@ #if defined(CONFIG_SYSCTL) /* External variables not in a header file. */ -extern int sysctl_nr_open_min, sysctl_nr_open_max; #ifdef CONFIG_RCU_TORTURE_TEST extern int rcutorture_runnable; #endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ -- 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/