From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756071AbYFZS4S (ORCPT ); Thu, 26 Jun 2008 14:56:18 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751185AbYFZS4D (ORCPT ); Thu, 26 Jun 2008 14:56:03 -0400 Received: from pasmtpa.tele.dk ([80.160.77.114]:58168 "EHLO pasmtpA.tele.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750877AbYFZS4A (ORCPT ); Thu, 26 Jun 2008 14:56:00 -0400 Date: Thu, 26 Jun 2008 20:56:46 +0200 From: Sam Ravnborg To: Arnd Bergmann Cc: LKML , linux-kbuild , Linus Torvalds Subject: Re: Support arch/$ARCH/include in kbuild Message-ID: <20080626185645.GA13699@uranus.ravnborg.org> References: <20080621220703.GA12279@uranus.ravnborg.org> <20080622220508.GA8957@uranus.ravnborg.org> <200806241732.58449.arnd@arndb.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200806241732.58449.arnd@arndb.de> 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 Tue, Jun 24, 2008 at 05:32:57PM +0200, Arnd Bergmann wrote: > On Monday 23 June 2008, Sam Ravnborg wrote: > > > Any comments are welcome! > > Patches will follow as reply to this one, but they > > are only sent to kbuild and lkml. > > I think you need to fix up all instances of #include , > > grep ^#[:ws:]*include.*[\"\<]asm-[^g].*/ `git-ls-files` > > Documentation/lguest/lguest.c:#include "asm-x86/bootparam.h" > arch/ia64/ia32/audit.c:#include > arch/ia64/kernel/asm-offsets.c:#include > arch/ia64/kernel/asm-offsets.c:#include > arch/ia64/kernel/asm-offsets.c:#include > arch/ia64/kernel/asm-offsets.c:#include > arch/ia64/kernel/asm-offsets.c:#include > arch/ia64/kernel/jprobes.S:#include > arch/mips/mips-boards/generic/amon.c:#include > arch/mips/mips-boards/generic/amon.c:#include > arch/mips/mips-boards/generic/amon.c:#include > arch/powerpc/platforms/86xx/mpc86xx_smp.c:#include > arch/sparc64/kernel/compat_audit.c:#include > arch/um/sys-x86_64/syscall_table.c:#include > arch/um/sys-x86_64/syscall_table.c:#include > drivers/char/agp/parisc-agp.c:#include > drivers/char/agp/parisc-agp.c:#include > drivers/infiniband/hw/ehca/ehca_reqs.c:#include > drivers/s390/net/qeth_core_main.c:#include > drivers/s390/net/qeth_core_main.c:#include > include/asm-arm/arch-omap/board.h:#include > include/asm-blackfin/gpio.h:#include > include/asm-m68knommu: lots of #include > include/asm-parisc/ropes.h:#include > include/asm-powerpc/irqflags.h:#include > include/asm-sparc64: lots of #include > > most of these are obvious, the interesting ones being sparc64, m68knommu > and arch/um as well as arch/ia64/ia32/audit.c. > > The best idea I have for sparc64 and m68knommu would be to use > "gcc -Iarch/sparc64/include -Iarch/sparc/include" and then remove the > respective files from sparc64. On m68knommu, this works as well, except > for the pci.h and setup.h files that include the m68k one and then > do some more. For sparc64 I have taken a bit more drastic approach and I am merging the header files of sparc and sparc64. My goal is to get sparc converted to use arch/sparc/include/asm for 2.6.27. Sam