public inbox for linux-kbuild@vger.kernel.org
 help / color / mirror / Atom feed
From: Sam Ravnborg <sam@ravnborg.org>
To: Remis Lima Baima <remis.developer@googlemail.com>
Cc: linux-kbuild@vger.kernel.org
Subject: Re: [PATCH 0/3] Generic headers implementation
Date: Thu, 12 Mar 2009 16:31:50 +0100	[thread overview]
Message-ID: <20090312153150.GA11875@uranus.ravnborg.org> (raw)
In-Reply-To: <1236865388-31590-1-git-send-email-remis.developer@googlemail.com>

On Thu, Mar 12, 2009 at 02:43:05PM +0100, Remis Lima Baima wrote:
> Generic headers allow ARCH maintainers to remove all dummy
> arch/ARCH/include/asm/XXX.h files or, depending on the architecture, 
> include/asm-ARCH/XXX.h (e.g. arch/x86/include/asm/errno.h) that only 
> include the _name equivalent_ include/asm-generic/XXX.h file 
> (e.g. include/asm-generic/errno.h) with _no_ changes. It was called 
> generic headers for short. Arnd Bergmann gave the original idea and 
> asked me to implement it.

Hi Remis.

I recall having exchanged mails with Arnd about the topic before but
I have lost track of it.

Why is it that we do not implment this using the following scheme:

Create a new directory:
1) include/generic/asm
2) Add the directory to the searchpath _after_ all ARCH supplied search paths.
3) Teach headers install about this new place
4) Move all generic headers from asm-generic to this new home
   and add a dummy "#include <generic/asm/foo.h>" in asm-generic

Then we can delete all the one-liners in $ARCH/include/asm
which simply include the asm-generic version.

	Sam

  parent reply	other threads:[~2009-03-12 15:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-12 13:43 [PATCH 0/3] Generic headers implementation Remis Lima Baima
2009-03-12 13:43 ` [PATCH 1/3] Create the infrastructure for generic headers Remis Lima Baima
2009-03-12 13:43   ` [PATCH 2/3] Apply generic headers for x86 Remis Lima Baima
2009-03-12 13:43     ` [PATCH 3/3] Apply generic headers for PPC Remis Lima Baima
2009-03-12 15:31 ` Sam Ravnborg [this message]
2009-03-13 21:50   ` [PATCH 0/3] Generic headers implementation Remis Lima Baima
2009-03-18 17:08   ` [PATCH 0/2] New generic " Remis Lima Baima
     [not found]     ` <1237396115-28674-2-git-send-email-remis.developer@googlemail.com>
2009-03-18 17:08       ` [PATCH 2/2] Apply generic headers for x86 Remis Lima Baima
2009-03-20 16:31       ` [PATCH] Create the infrastructure for generic headers-UPDATE Remis Lima Baima

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090312153150.GA11875@uranus.ravnborg.org \
    --to=sam@ravnborg.org \
    --cc=linux-kbuild@vger.kernel.org \
    --cc=remis.developer@googlemail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox