Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752503Ab0BUOZ6 (ORCPT ); Sun, 21 Feb 2010 09:25:58 -0500 Received: from mail-yx0-f193.google.com ([209.85.210.193]:58923 "EHLO mail-yx0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752209Ab0BUOZz (ORCPT ); Sun, 21 Feb 2010 09:25:55 -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=qp/oMKOl1QO5qDV/SdDNLnbA8baAwANArrClYKThbwcbjaLlQ6EuHXTRf/9CXBXxeI 3h1DZnXM3S3TiQD/XJtX1et90uhT+vwhlw9LXt8lOA+aiD4F8ejvnIKVRyU3tssuzOgf hM/QkStWxAKGRNyNzfDJcUMwsIbq7VsP4fwM8= Date: Sun, 21 Feb 2010 22:25:46 +0800 From: Dave Young To: John McCutchan , Robert Love , Eric Paris , Ingo Molnar , Andrew Morton , Peter Zijlstra , James Morris , "Eric W. Biederman" , linux-kernel@vger.kernel.org Subject: [PATCH -mm 17/17] sysctl extern cleanup - inotify Message-ID: <20100221142546.GA3031@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: 1641 Lines: 50 Extern declarations in sysctl.c should be move to their own head file, and then include them in relavant .c files. Move inotify_table extern declaration to linux/inotify.h Signed-off-by: Dave Young --- include/linux/inotify.h | 5 +++++ kernel/sysctl.c | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) --- linux-2.6.32.orig/kernel/sysctl.c 2010-02-21 11:25:35.455865983 +0800 +++ linux-2.6.32/kernel/sysctl.c 2010-02-21 11:27:43.782519869 +0800 @@ -75,6 +75,9 @@ #ifdef CONFIG_EPOLL #include #endif +#ifdef CONFIG_INOTIFY_USER +#include +#endif #ifdef CONFIG_CHR_DEV_SG #include #endif @@ -174,9 +177,6 @@ static struct ctl_table fs_table[]; static struct ctl_table debug_table[]; static struct ctl_table dev_table[]; extern struct ctl_table random_table[]; -#ifdef CONFIG_INOTIFY_USER -extern struct ctl_table inotify_table[]; -#endif /* The default sysctl tables: */ --- linux-2.6.32.orig/include/linux/inotify.h 2010-02-21 11:25:35.465866403 +0800 +++ linux-2.6.32/include/linux/inotify.h 2010-02-21 11:28:20.686684371 +0800 @@ -69,4 +69,9 @@ struct inotify_event { #define IN_CLOEXEC O_CLOEXEC #define IN_NONBLOCK O_NONBLOCK +#ifdef __KERNEL__ +#include +extern struct ctl_table inotify_table[]; /* for sysctl */ +#endif + #endif /* _LINUX_INOTIFY_H */ -- 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/