Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752473Ab0BUOYP (ORCPT ); Sun, 21 Feb 2010 09:24:15 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:60907 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752256Ab0BUOYM (ORCPT ); Sun, 21 Feb 2010 09:24:12 -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=EvlO2Fl/mdj3cD5a/OdTEzwfkak8RIRGcCa7G+KIGd1jGnTL30nnaJPh2el62xbBCg ZxPffdoMq5vOBhhpfLeL1p5Y0qvyIbLKcVlHrcFhvBXV9VXyg8qFU1doZOOOEU8HpDgd QJoWT9v0zS4xj6mAQq5TA1sMhiDeRz/YFlyt0= Date: Sun, 21 Feb 2010 22:24:01 +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 -mm 08/17] sysctl extern cleanup - file nr Message-ID: <20100221142401.GA3010@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: 1542 Lines: 44 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 | 1 + kernel/sysctl.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) --- linux-2.6.32.orig/include/linux/file.h 2010-02-21 09:35:58.126524381 +0800 +++ linux-2.6.32/include/linux/file.h 2010-02-21 09:59:23.183884433 +0800 @@ -9,6 +9,7 @@ #include #include +extern int sysctl_nr_open_min, sysctl_nr_open_max; /* for sysctl */ struct file; extern void __fput(struct file *); --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 09:57:19.646397324 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-21 09:58:40.029722800 +0800 @@ -59,6 +59,7 @@ #include #include #include +#include #include #include @@ -74,7 +75,6 @@ /* External variables not in a header file. */ extern int max_threads; -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/