public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Linus Torvalds <torvalds@linux-foundation.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: Linux Kernel Mailing List <linux-kernel@vger.kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Thomas Gleixner <tglx@linutronix.de>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Vegard Nossum <vegard.nossum@gmail.com>
Subject: Re: [git pull] x86 updates for v2.6.28, phase #1
Date: Fri, 10 Oct 2008 08:15:56 -0700 (PDT)	[thread overview]
Message-ID: <alpine.LFD.2.00.0810100808540.3524@nehalem.linux-foundation.org> (raw)
In-Reply-To: <20081009234705.GA20540@elte.hu>



On Fri, 10 Oct 2008, Ingo Molnar wrote:
> 
> Vegard Nossum (3):
>       x86: consolidate header guards
>       x86: consolidate header guards

Ok, so I pulled phase 1, but quite frankly, I think this was utter crap. 
Why the hell did this go in?

The #1 "argument" for this was:

  1. No leading underscore. Names with leading underscores are reserved.

but what the _hell_ do you think kernel header files are? They are system 
header files, and they _should_ use the reserved name-space.

Quite frankly, it's entirely possible that some crazy - but perfectly 
correct - user space program does something like

	#include <sys/types.h>

	int ASM_X86__TYPES_H = 1;

and the whole point in using underscores in system header files is that 
those names are reserved TO THE SYSTEM, so that normal portable programs 
never need to worry about their choice of names.

You just broke this. For no good reason. Just to make things uglier, and 
just because people apparently don't understand _why_ leading underscores 
are special. They are special exactly _because_ they are reserved for 
system use, and there is little less "systemy" than the headers exported 
by the kernel.

And yes, yes, we could add the f*cking things back when we export them as 
header files, but what's the point, really? And no, I'm not guaranteeing 
that we're being super-careful about namespace issues in all kernel 
headers that can get exported to user space, but we _try_.

			Linus

  reply	other threads:[~2008-10-10 15:16 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-09 23:47 [git pull] x86 updates for v2.6.28, phase #1 Ingo Molnar
2008-10-10 15:15 ` Linus Torvalds [this message]
2008-10-10 15:26   ` Ingo Molnar
2008-10-10 15:58     ` Ingo Molnar
2008-10-10 20:39       ` Vegard Nossum
2008-10-10 20:43         ` H. Peter Anvin
2008-10-10 21:07           ` Linus Torvalds
2008-10-10 21:21             ` H. Peter Anvin
2008-10-10 21:37               ` malc
2008-10-10 20:47         ` Ingo Molnar

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=alpine.LFD.2.00.0810100808540.3524@nehalem.linux-foundation.org \
    --to=torvalds@linux-foundation.org \
    --cc=akpm@linux-foundation.org \
    --cc=hpa@zytor.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@elte.hu \
    --cc=tglx@linutronix.de \
    --cc=vegard.nossum@gmail.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