From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.osdl.org (smtp.osdl.org [65.172.181.24]) (using TLSv1 with cipher EDH-RSA-DES-CBC3-SHA (168/168 bits)) (Client CN "smtp.osdl.org", Issuer "OSDL Hostmaster" (not verified)) by ozlabs.org (Postfix) with ESMTP id 2566DDE1E5 for ; Sat, 27 Jan 2007 21:56:20 +1100 (EST) Date: Sat, 27 Jan 2007 02:51:37 -0800 From: Andrew Morton To: "Eric W. Biederman" Subject: Re: [PATCH 49/59] sysctl: Move init_irq_proc into init/main where it belongs Message-Id: <20070127025137.9a2c65bb.akpm@osdl.org> In-Reply-To: <1168965684147-git-send-email-ebiederm@xmission.com> References: <1168965684147-git-send-email-ebiederm@xmission.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Cc: linux-mips@linux-mips.org, linux-parport@lists.infradead.org, heiko.carstens@de.ibm.com, ak@suse.de, linuxppc-dev@ozlabs.org, paulus@samba.org, aharkes@cs.cmu.edu, schwidefsky@de.ibm.com, tim@cyberelk.net, rtc-linux@googlegroups.com, linux-scsi@vger.kernel.org, kurt.hackel@oracle.com, coda@cs.cmu.edu, vojtech@suse.cz, linuxsh-shmedia-dev@lists.sourceforge.net, James.Bottomley@SteelEye.com, clemens@ladisch.de, xfs@oss.sgi.com, xfs-masters@oss.sgi.com, andrea@suse.de, openipmi-developer@lists.sourceforge.net, linux-390@vm.marist.edu, codalist@TELEMANN.coda.cs.cmu.edu, a.zummo@towertech.it, tony.luck@intel.com, linux-ntfs-dev@lists.sourceforge.net, netdev@vger.kernel.org, aia21@cantab.net, linux-kernel@vger.kernel.org, ralf@linux-mips.org, lethal@linux-sh.org, containers@lists.osdl.org, linux390@de.ibm.com, philb@gnu.org List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, 16 Jan 2007 09:39:54 -0700 "Eric W. Biederman" wrote: > From: Eric W. Biederman - unquoted > > Signed-off-by: Eric W. Biederman > --- > init/main.c | 3 +++ > kernel/sysctl.c | 3 --- > 2 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/init/main.c b/init/main.c > index 8b4a7d7..8af5c6e 100644 > --- a/init/main.c > +++ b/init/main.c > @@ -691,6 +691,9 @@ static void __init do_basic_setup(void) > #ifdef CONFIG_SYSCTL > sysctl_init(); > #endif > +#ifdef CONFIG_PROC_FS > + init_irq_proc(); > +#endif > > do_initcalls(); > } > diff --git a/kernel/sysctl.c b/kernel/sysctl.c > index 600b333..7420761 100644 > --- a/kernel/sysctl.c > +++ b/kernel/sysctl.c > @@ -1172,8 +1172,6 @@ static ctl_table dev_table[] = { > { .ctl_name = 0 } > }; > > -extern void init_irq_proc (void); > - > static DEFINE_SPINLOCK(sysctl_lock); > > /* called under sysctl_lock */ > @@ -1219,7 +1217,6 @@ void __init sysctl_init(void) > { > #ifdef CONFIG_PROC_SYSCTL > register_proc_table(root_table, proc_sys_root, &root_table_header); > - init_irq_proc(); > #endif > } sparc64: init/main.c: In function `do_basic_setup': init/main.c:707: warning: implicit declaration of function `init_irq_proc' I couldn't be bothered working out how init/main.c is supposed to get at its declaration of init_irq_proc(). It's not allowed to include linux/irq.h.