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 ;-/
--