Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756033Ab0BTORc (ORCPT ); Sat, 20 Feb 2010 09:17:32 -0500 Received: from mail-gx0-f217.google.com ([209.85.217.217]:47071 "EHLO mail-gx0-f217.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755917Ab0BTORb (ORCPT ); Sat, 20 Feb 2010 09:17:31 -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=Eee6R74X6ncvVbRl4q+d9V+u8X2URPGRlpyFRHQwKz082sCerjgl0gu8xHxLfrDl86 TSM9kD10G9qCTQEIAiOWbtlpfToru0uJjuwpUj/lKezr3Rx1O1c9+TolR5nlRjdLn3Uj zGPKHOMQkke616ioTlYuJXOsiCF1FfZmKfr2A= Date: Sat, 20 Feb 2010 22:17:20 +0800 From: Dave Young To: Ingo Molnar , Andrew Morton , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH 11/18] sysctl extern cleanup - block iopoll Message-ID: <20100220141720.GJ3195@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: 1215 Lines: 38 Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files. blk_iopoll_enabled declared in linux/blk-iopoll.h, remove the declaration in sysctl.c, include the head file instead. Signed-off-by: Dave Young --- kernel/sysctl.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-12 13:43:17.754981908 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-12 13:44:25.191642639 +0800 @@ -61,6 +61,7 @@ #include #include #include +#include #include #include @@ -74,11 +75,6 @@ #if defined(CONFIG_SYSCTL) -/* External variables not in a header file. */ -#ifdef CONFIG_BLOCK -extern int blk_iopoll_enabled; -#endif - /* Constants used for minimum and maximum */ #ifdef CONFIG_DETECT_SOFTLOCKUP static int sixty = 60; -- 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/