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

Al Viro
2008-05-22T01:36:22Z

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...