Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752166Ab0BUOXF (ORCPT ); Sun, 21 Feb 2010 09:23:05 -0500 Received: from mail-gw0-f46.google.com ([74.125.83.46]:62966 "EHLO mail-gw0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751863Ab0BUOXE (ORCPT ); Sun, 21 Feb 2010 09:23:04 -0500 X-Greylist: delayed 86383 seconds by postgrey-1.27 at vger.kernel.org; Sun, 21 Feb 2010 09:23:03 EST 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=CHYEbGfcXrbFlS22B+J9+pyyfpqPnHAtYhokuDiEunPZzYLN4VFjY7ZBJezrzisVhN 6dl1YK/ajSLt6XCia5CIo+Dd5lA6SB25W+oUEcqhdFig5rIAM1nqKRe2/9WA6NsacTlk OewTw586ezSrnB34FLrR3xeEWv47pFYDcEzWc= Date: Sun, 21 Feb 2010 22:22:51 +0800 From: Dave Young To: Oleg Nesterov , Andrew Morton , Ulrich Drepper , Thomas Gleixner , Roland McGrath , Ingo Molnar , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH -mm 02/17] sysctl extern cleanup - signal Message-ID: <20100221142251.GA3002@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: 1459 Lines: 45 Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files. Move print_fatal_signals extern declaration to linux/signal.h Signed-off-by: Dave Young --- include/linux/signal.h | 2 ++ kernel/sysctl.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) --- linux-2.6.32.orig/include/linux/signal.h 2010-02-21 09:35:58.913190280 +0800 +++ linux-2.6.32/include/linux/signal.h 2010-02-21 09:41:38.006491648 +0800 @@ -7,6 +7,8 @@ #ifdef __KERNEL__ #include +/* for sysctl */ +extern int print_fatal_signals; /* * Real Time signals may be queued. */ --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 09:38:12.793177219 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-21 09:40:41.683996252 +0800 @@ -54,6 +54,7 @@ #include #include #include +#include #include #include @@ -68,7 +69,6 @@ #if defined(CONFIG_SYSCTL) /* External variables not in a header file. */ -extern int print_fatal_signals; extern int max_threads; extern int core_uses_pid; extern int suid_dumpable; -- 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/