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

From: Al Viro
Date: Wed May 21 2008 - 21:36:22 EST


On Wed, May 21, 2008 at 06:29:43PM -0700, Linus Torvalds wrote:
>
>
> On Wed, 21 May 2008, Harvey Harrison wrote:
> >
> > What about say, sparc64 that has a lot of #include <asm-sparc/foo.h>
>
> Ahh, I didn't realize people did that.
>
> I assume (but am too lazy to check) that UML probably does something
> similar for its arch-specific stuff.

arch/um/include/*.h
arch/um/include/sysdep-<target>/*.h
include/asm-um/*.h

plus

arch/um/include/sysdep -> sysdep-<target>
and
include/asm-um/arch -> ../asm-<target>

Note that uml has two halves - kernel-side and userland-side. The latter
is build with host search path, etc., with addition of arch/um/include.
The former is normal kernel code, with addition of arch/um/include again.
So some things in that sucker are for kernel-side and some - for userland
side...
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/