Re: Moving include/asm-*

David Miller
2008-05-22T01:23:48Z

From: Linus Torvalds <torvalds@linux-foundation.org>
Date: Wed, 21 May 2008 18:20:27 -0700 (PDT)

> On Thu, 22 May 2008, Al Viro wrote:
> >
> > Eh? git mv include/asm-$i arch/$i/include/asm, then?
>
> Yeah, sorry, I dropped an "include/" there.
>
> > Nice, but... how do you pull what's currently asm-generic/foo.h from what's
> > currently asm-bar/foo.h? #include_next is _ugly_...
>
> I was actually going to suggest #include_next, yes. But if people hate it,
> we can certainly just keep the current <asm-generic/xyz.h> approach.

This discussion reminds me of one of my (numerous) pet peeves
about the glibc source tree.

If you want to figure out where something is implemented for a given
target, you have to walk through the tree like a monkey in some
prioritized list of directories to find the source file or header file
that glibc ends up using.

At least with what we're using now, you open up the file for ARCH and
you see the includes so you know exactly where to go.

So I think this "just provide no file to use default implementation"
might not be the best idea in the long term.