Re: Moving include/asm-* [was: Re: Moving sound/* to drivers/ ?]

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Linus Torvalds <torvalds@...>
Cc: Paul Mackerras <paulus@...>, Takashi Iwai <tiwai@...>, <linux-kernel@...>
Date: Wednesday, May 21, 2008 - 9:30 pm

On Wed, May 21, 2008 at 06:20:27PM -0700, Linus Torvalds wrote:

Another alternative is to replace asm-generic/ with generic/asm and have
-I include -I arch/$ARCH/include -I include/generic. Then we'd have

linux/foo.h => include/linux/foo.h (one lookup)
asm/foo.h => arch/include/asm/foo.h if it exists (negative on include/asm,
                                                  then one lookup)
          => include/generic/asm/foo.h otherwise (negative on include/asm,
                                                  negative lookup,
                                                  lookup)
generic/asm/foo.h => include/generic/asm/foo.h   (one lookup)

No #include_next at all.  Kludgy, though...  Note that arch/um will need
more interesting treatment in any case and so may things like arch/arm
with its include/asm/arch symlink ;-/
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
Moving sound/* to drivers/ ?, Takashi Iwai, (Wed May 21, 5:20 pm)
Re: Moving sound/* to drivers/ ?, Jeff Garzik, (Wed May 21, 7:37 pm)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 7:53 pm)
Re: Moving sound/* to drivers/ ?, Takashi Iwai, (Thu May 22, 4:27 am)
Re: Moving sound/* to drivers/ ?, Adrian Bunk, (Thu May 22, 10:22 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 5:57 am)
Re: Moving sound/* to drivers/ ?, Jan Engelhardt, (Thu May 22, 4:55 am)
Re: Moving sound/* to drivers/ ?, Linus Torvalds, (Thu May 22, 11:04 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 12:40 pm)
Re: Moving sound/* to drivers/ ?, Jan Engelhardt, (Thu May 22, 11:50 am)
Re: Moving sound/* to drivers/ ?, Jaroslav Kysela, (Thu May 22, 2:26 am)
Re: Moving sound/* to drivers/ ?, Rene Herman, (Thu May 22, 4:11 am)
Re: Moving sound/* to drivers/ ?, Sam Ravnborg, (Thu May 22, 3:12 am)
Re: Moving sound/* to drivers/ ?, Jaroslav Kysela, (Thu May 22, 3:20 am)
Re: Moving sound/* to drivers/ ?, Adrian Bunk, (Wed May 21, 6:23 pm)
Re: Moving sound/* to drivers/ ?, Takashi Iwai, (Thu May 22, 4:22 am)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Timur Tabi, (Wed May 21, 6:05 pm)
Re: Moving sound/* to drivers/ ?, Linus Torvalds, (Wed May 21, 5:44 pm)
Re: Moving include/asm-* [was: Re: Moving sound/* to drivers..., Al Viro, (Wed May 21, 9:30 pm)
Re: Moving include/asm-*, David Miller, (Wed May 21, 9:25 pm)
Re: Moving include/asm-*, David Miller, (Wed May 21, 9:23 pm)
Re: Moving include/asm-*, Andreas Schwab, (Thu May 22, 4:09 am)
Re: Moving include/asm-*, David Miller, (Thu May 22, 12:12 pm)
Re: Moving include/asm-*, Andreas Schwab, (Thu May 22, 12:32 pm)
Re: Moving include/asm-*, David Miller, (Thu May 22, 1:43 pm)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 5:58 pm)
Re: [alsa-devel] Moving sound/* to drivers/ ?, Rene Herman, (Wed May 21, 6:08 pm)
Re: Moving sound/* to drivers/ ?, Sam Ravnborg, (Wed May 21, 5:54 pm)