public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Arnd Bergmann <arnd@arndb.de>
Cc: LKML <linux-kernel@vger.kernel.org>,
	linux-kbuild <linux-kbuild@vger.kernel.org>,
	Linus Torvalds <torvalds@linux-foundation.org>
Subject: Re: Support arch/$ARCH/include in kbuild
Date: Thu, 26 Jun 2008 20:56:46 +0200	[thread overview]
Message-ID: <20080626185645.GA13699@uranus.ravnborg.org> (raw)
In-Reply-To: <200806241732.58449.arnd@arndb.de>

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 <asm-$ARCH/$FILE>,
> 
> grep ^#[:ws:]*include.*[\"\<]asm-[^g].*/ `git-ls-files`
> 
> Documentation/lguest/lguest.c:#include "asm-x86/bootparam.h"
> arch/ia64/ia32/audit.c:#include <asm-x86/unistd_32.h>
> arch/ia64/kernel/asm-offsets.c:#include <asm-ia64/processor.h>
> arch/ia64/kernel/asm-offsets.c:#include <asm-ia64/ptrace.h>
> arch/ia64/kernel/asm-offsets.c:#include <asm-ia64/siginfo.h>
> arch/ia64/kernel/asm-offsets.c:#include <asm-ia64/sigcontext.h>
> arch/ia64/kernel/asm-offsets.c:#include <asm-ia64/mca.h>
> arch/ia64/kernel/jprobes.S:#include <asm-ia64/break.h>
> arch/mips/mips-boards/generic/amon.c:#include <asm-mips/addrspace.h>
> arch/mips/mips-boards/generic/amon.c:#include <asm-mips/mips-boards/launch.h>
> arch/mips/mips-boards/generic/amon.c:#include <asm-mips/mipsmtregs.h>
> arch/powerpc/platforms/86xx/mpc86xx_smp.c:#include <asm-powerpc/mpic.h>
> arch/sparc64/kernel/compat_audit.c:#include <asm-sparc/unistd.h>
> arch/um/sys-x86_64/syscall_table.c:#include <asm-x86/unistd_64.h>
> arch/um/sys-x86_64/syscall_table.c:#include <asm-x86/unistd_64.h>
> drivers/char/agp/parisc-agp.c:#include <asm-parisc/parisc-device.h>
> drivers/char/agp/parisc-agp.c:#include <asm-parisc/ropes.h>
> drivers/infiniband/hw/ehca/ehca_reqs.c:#include <asm-powerpc/system.h>
> drivers/s390/net/qeth_core_main.c:#include <asm-s390/ebcdic.h>
> drivers/s390/net/qeth_core_main.c:#include <asm-s390/io.h>
> include/asm-arm/arch-omap/board.h:#include <asm-arm/arch-omap/board-nokia.h>
> include/asm-blackfin/gpio.h:#include <asm-blackfin/mach-bf548/gpio.h>
> include/asm-m68knommu: lots of #include <asm-m68k/*>
> include/asm-parisc/ropes.h:#include <asm-parisc/parisc-device.h>
> include/asm-powerpc/irqflags.h:#include <asm-powerpc/hw_irq.h>
> include/asm-sparc64: lots of #include <asm-sparc/*>
> 
> 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

      reply	other threads:[~2008-06-26 18:56 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-21 22:07 Support arch/$ARCH/include in kbuild Sam Ravnborg
2008-06-21 22:08 ` [PATCH] kbuild: prepare headers_* for arch/$ARCH/include Sam Ravnborg
2008-06-21 22:08 ` [PATCH] kbuild: support arch/$ARCH/include/ Sam Ravnborg
2008-06-21 22:11 ` Support arch/$ARCH/include in kbuild Sam Ravnborg
2008-06-22 22:05 ` Sam Ravnborg
2008-06-22 22:08   ` [PATCH 1/5] kbuild: prepare headers_* for arch/$ARCH/include Sam Ravnborg
2008-06-24 14:31     ` Arnd Bergmann
2008-06-22 22:08   ` [PATCH 2/5] kbuild: include/asm may be a file - fix mrproper for this Sam Ravnborg
2008-06-22 22:08   ` [PATCH 3/5] kbuild: support arch/$ARCH/include for tags, cscope Sam Ravnborg
2008-06-22 22:08   ` [PATCH 4/5] kbuild: asm symlink support for arch/$ARCH/include Sam Ravnborg
2008-06-22 22:08   ` [PATCH 5/5] kbuild: add arch/$ARCH/include to search path Sam Ravnborg
2008-06-24 15:32   ` Support arch/$ARCH/include in kbuild Arnd Bergmann
2008-06-26 18:56     ` Sam Ravnborg [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080626185645.GA13699@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=arnd@arndb.de \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox