[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <49A4EE85.5000907@zytor.com>
Date: Tue, 24 Feb 2009 23:08:53 -0800
From: "H. Peter Anvin" <hpa@...or.com>
To: Kyle McMartin <kyle@...radead.org>
CC: Ingo Molnar <mingo@...e.hu>, Sam Ravnborg <sam@...nborg.org>,
Jaswinder Singh Rajput <jaswinderrajput@...il.com>,
mingo@...hat.com, dwmw2@...radead.org,
linux-kernel@...r.kernel.org, Arnd Bergmann <arnd@...db.de>
Subject: Re: [rfc] headers_check cleanups break the whole world
Kyle McMartin wrote:
>
> Yeah, sorry, I should have been clearer, libcap does stupid
> #define _LINUX_TYPES_H_
> typedef unsigned int __u32;
> #include <linux/header.h>
>
> Which is just horribly broken when it's included early in a file and
> then we try to #include <asm/sigcontext.h> (and doesn't get the rest
> of those types since it now includes <linux/types.h> instead of
> <asm/types.h>) (coreutils was doing this.)
>
> The real case is something like using the dvb headers, which legitimately
> is trying to include both <sys/*.h> and then <linux/dvb/*.h> and expecting
> it to work.
>
> The footnote in the prior mail was really just an example of why not
> having just the plain __u32 et al types in their own header.
>
Because <linux/types.h> should work just fine once we get rid of the
__KERNEL_STRICT_NAMES idiocy?
FWIW, Arnd Bergmann has been working on exactly this cleanup.
-hpa
--
H. Peter Anvin, Intel Open Source Technology Center
I work for Intel. I don't speak on their behalf.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists