From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753523AbZEKSw0 (ORCPT ); Mon, 11 May 2009 14:52:26 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752256AbZEKSwR (ORCPT ); Mon, 11 May 2009 14:52:17 -0400 Received: from pfepb.post.tele.dk ([195.41.46.236]:48749 "EHLO pfepb.post.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752524AbZEKSwQ (ORCPT ); Mon, 11 May 2009 14:52:16 -0400 Date: Mon, 11 May 2009 20:54:24 +0200 From: Sam Ravnborg To: Peter Oberparleiter Cc: =?iso-8859-1?Q?Am=E9rico?= Wang , linux-kernel@vger.kernel.org, Andrew Morton , Andi Kleen , Huang Ying , Li Wei , Michael Ellerman , Ingo Molnar , Heiko Carstens , Martin Schwidefsky , Rusty Russell , Jeff Dike Subject: Re: [PATCH 1/4] kernel: constructor support Message-ID: <20090511185424.GA32234@uranus.ravnborg.org> References: <20090508154407.956216094@linux.vnet.ibm.com> <20090508154408.925135176@linux.vnet.ibm.com> <20090509050335.GC18129@hack> <4A07E536.9070609@linux.vnet.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <4A07E536.9070609@linux.vnet.ibm.com> User-Agent: Mutt/1.4.2.1i Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, May 11, 2009 at 10:43:34AM +0200, Peter Oberparleiter wrote: > Américo Wang wrote: > >On Fri, May 08, 2009 at 05:44:09PM +0200, Peter Oberparleiter wrote: > >>From: Peter Oberparleiter > >>Index: linux-2.6.30-rc4/init/main.c > >>=================================================================== > >>--- linux-2.6.30-rc4.orig/init/main.c > >>+++ linux-2.6.30-rc4/init/main.c > >>@@ -700,6 +700,18 @@ asmlinkage void __init start_kernel(void > >> rest_init(); > >>} > >> > >>+/* Call all constructor functions linked into the kernel. */ > >>+static void __init do_ctors(void) > >>+{ > >>+#ifdef CONFIG_CONSTRUCTORS > >>+ extern ctor_fn_t __ctors_start[], __ctors_end[]; > > > > > >I would like these to be globally decleared, since they are. > > Ok, I will move the __ctors_* declarations to include/linux/ínit.h include/asm-generic/sections.h please. And please add a comment too. That the other entries in the same file lacks a comment is not the example to follow. Sam