[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <alpine.LSU.2.00.0901172301380.14505@fbirervta.pbzchgretzou.qr>
Date: Sat, 17 Jan 2009 23:04:06 +0100 (CET)
From: Jan Engelhardt <jengelh@...ozas.de>
To: David Woodhouse <dwmw2@...radead.org>
cc: Jaswinder Singh Rajput <jaswinder@...nel.org>,
Ingo Molnar <mingo@...e.hu>, x86 maintainers <x86@...nel.org>,
urs.thuermann@...kswagen.de, oliver.hartkopp@...kswagen.de,
linux-media@...r.kernel.org, netfilter-devel@...r.kernel.org,
netfilter@...r.kernel.org, bfields@...ldses.org, neilb@...e.de,
linux-nfs@...r.kernel.org, linux-raid@...r.kernel.org,
dbrownell@...rs.sourceforge.net,
spi-devel-general@...ts.sourceforge.net, netdev@...r.kernel.org,
greg@...ah.com, linux-usb@...r.kernel.org,
linux-mtd@...ts.infradead.org, tiwai@...e.de,
mchehab@...radead.org, LKML <linux-kernel@...r.kernel.org>,
Andrew Morton <akpm@...ux-foundation.org>
Subject: Re: [GIT PULL -tip] fix 33 make headers_check warnings
On Saturday 2009-01-17 22:37, David Woodhouse wrote:
>On Sun, 2009-01-18 at 01:47 +0530, Jaswinder Singh Rajput wrote:
>> --- a/include/linux/dvb/audio.h
>> +++ b/include/linux/dvb/audio.h
>> @@ -24,9 +24,8 @@
>> #ifndef _DVBAUDIO_H_
>> #define _DVBAUDIO_H_
>>
>> -#ifdef __KERNEL__
>> #include <linux/types.h>
>> -#else
>> +#ifndef __KERNEL__
>> #include <stdint.h>
>> #endif
>
>That patch looks wrong, and unnecessary. It was fine before.
What itches my eye is
#ifndef __KERNEL__
#include <stdint.h>
#endif
I am not sure how much Linux header files are supposed to be usable
from C++, but in case someone does, <cstdint> should be used in C++0x
mode. Testing for C++0x with macros however looks even more out of
place in such header files.
Thoughts?
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists