Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755997Ab0BTOQb (ORCPT ); Sat, 20 Feb 2010 09:16:31 -0500 Received: from mail-yx0-f200.google.com ([209.85.210.200]:45193 "EHLO mail-yx0-f200.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755866Ab0BTOQa (ORCPT ); Sat, 20 Feb 2010 09:16:30 -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=f0mUZ2rLGY2JFMgHhzvz67csOzcJQGXx+Xm20i+0eHEB0nfR9HQB3yV7NUtifTAly/ nGqB9aMQttH2ijX9xc5w5CZVIALV1vYJyFr3LvWY1SVWCXKYrsnWiHPIunDdaFC3GURm pvKpP4rhpyPhr1x4pJuawbi4udbfveIrZXMRQ= Date: Sat, 20 Feb 2010 22:16:20 +0800 From: Dave Young To: Dipankar Sarma , "Paul E. McKenney" , Ingo Molnar , Lai Jiangshan , Vegard Nossum , Josh Triplett , Andrew Morton , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH 10/18] sysctl extern cleanup - rcu Message-ID: <20100220141620.GI3195@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: 1510 Lines: 43 Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files. Move rcutorture_runnable extern declaration to linux/rcupdate.h Signed-off-by: Dave Young --- include/linux/rcupdate.h | 6 ++++++ kernel/sysctl.c | 3 --- 2 files changed, 6 insertions(+), 3 deletions(-) --- linux-2.6.32.orig/include/linux/rcupdate.h 2010-02-20 14:02:21.664925977 +0800 +++ linux-2.6.32/include/linux/rcupdate.h 2010-02-20 14:21:31.394811788 +0800 @@ -41,6 +41,12 @@ #include #include +#ifdef CONFIG_SYSCTL +#ifdef CONFIG_RCU_TORTURE_TEST +extern int rcutorture_runnable; +#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ +#endif + /** * struct rcu_head - callback structure for use with RCU * @next: next update requests in a list --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-20 14:18:05.088997885 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-20 14:20:08.432318998 +0800 @@ -75,9 +75,6 @@ #if defined(CONFIG_SYSCTL) /* External variables not in a header file. */ -#ifdef CONFIG_RCU_TORTURE_TEST -extern int rcutorture_runnable; -#endif /* #ifdef CONFIG_RCU_TORTURE_TEST */ #ifdef CONFIG_BLOCK extern int blk_iopoll_enabled; #endif -- 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/