Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750936AbWJ0ToP (ORCPT ); Fri, 27 Oct 2006 15:44:15 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750966AbWJ0ToP (ORCPT ); Fri, 27 Oct 2006 15:44:15 -0400 Received: from palinux.external.hp.com ([192.25.206.14]:16315 "EHLO mail.parisc-linux.org") by vger.kernel.org with ESMTP id S1750932AbWJ0ToO (ORCPT ); Fri, 27 Oct 2006 15:44:14 -0400 Date: Fri, 27 Oct 2006 13:44:13 -0600 From: Matthew Wilcox To: Andrew Morton Cc: Pavel Machek , Greg KH , Stephen Hemminger , Adrian Bunk , Linus Torvalds , Linux Kernel Mailing List , linux-pci@atrey.karlin.mff.cuni.cz Subject: Re: vmlinux.lds: consolidate initcall sections Message-ID: <20061027194412.GN5591@parisc-linux.org> References: <20061026224541.GQ27968@stusta.de> <20061027010252.GV27968@stusta.de> <20061027012058.GH5591@parisc-linux.org> <20061026182838.ac2c7e20.akpm@osdl.org> <20061026191131.003f141d@localhost.localdomain> <20061027170748.GA9020@kroah.com> <20061027172219.GC30416@elf.ucw.cz> <20061027113908.4a82c28a.akpm@osdl.org> <20061027114144.f8a5addc.akpm@osdl.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20061027114144.f8a5addc.akpm@osdl.org> User-Agent: Mutt/1.5.13 (2006-08-11) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1216 Lines: 41 On Fri, Oct 27, 2006 at 11:41:44AM -0700, Andrew Morton wrote: > Add a vmlinux.lds.h helper macro for defining the eight-level initcall table, > teach all the architectures to use it. > @@ -48,13 +48,7 @@ SECTIONS > . = ALIGN(8); > __initcall_start = .; > .initcall.init : { > - *(.initcall1.init) > - *(.initcall2.init) > - *(.initcall3.init) > - *(.initcall4.init) > - *(.initcall5.init) > - *(.initcall6.init) > - *(.initcall7.init) > + INITCALLS > } > __initcall_end = .; Why not make the INITCALLS macro include more: +#define INITCALLS \ + __initcall_start = .; \ + .initcall.init : { \ + *(.initcall1.init) \ + *(.initcall2.init) \ + *(.initcall3.init) \ + *(.initcall4.init) \ + *(.initcall5.init) \ + *(.initcall6.init) \ + *(.initcall7.init) \ + } \ + __initcall_end = .; Also, you might want to check the spaces at the front of your INITCALLS macro; I see two spaces before the first tab. - 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/