From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sam Ravnborg Subject: Re: linux-next: m68k build failure Date: Fri, 1 Aug 2008 22:41:57 +0200 Message-ID: <20080801204157.GA12390@uranus.ravnborg.org> References: <20080730175233.02dbf021.sfr@canb.auug.org.au> <20080730.010234.193703201.davem@davemloft.net> <20080730084935.GA18545@uranus.ravnborg.org> <20080801153710.815bbb74.sfr@canb.auug.org.au> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from smtpout3.tre.se ([80.251.192.228]:48610 "EHLO smtpout3.tre.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754205AbYHAUl0 (ORCPT ); Fri, 1 Aug 2008 16:41:26 -0400 Content-Disposition: inline In-Reply-To: Sender: linux-next-owner@vger.kernel.org List-ID: To: Geert Uytterhoeven Cc: Stephen Rothwell , David Miller , linux-next@vger.kernel.org, Linux Kernel Development , Linux/m68k On Fri, Aug 01, 2008 at 03:52:22PM +0200, Geert Uytterhoeven wrote: > Hi Stephen, > > On Fri, 1 Aug 2008, Stephen Rothwell wrote: > > On Wed, 30 Jul 2008 10:49:35 +0200 Sam Ravnborg wrote: > > > > > > Full list of relevant files: > > > include/asm-m68k/contregs.h:#include > > > include/asm-m68k/fbio.h:#include > > > include/asm-m68k/idprom.h:#include > > > > I applied the following patch to today's linux-next. > > Thanks! > > BTW, is there a (good) way to have this without duplicating those header files? The only solution I can come up with right now is: Makefile: ccflags-y += -Iarch/sparc/include foo.c: #include Disadvantage is that we loose the explicit documentation that this is header files from another architecture. So we should at least add a comment saying this. And the above would not work if the file has same filename, but then that is not a likely situation either. Sam