Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764114AbZAQWEb (ORCPT ); Sat, 17 Jan 2009 17:04:31 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757059AbZAQWEM (ORCPT ); Sat, 17 Jan 2009 17:04:12 -0500 Received: from sovereign.computergmbh.de ([85.214.69.204]:49355 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756705AbZAQWEK (ORCPT ); Sat, 17 Jan 2009 17:04:10 -0500 Date: Sat, 17 Jan 2009 23:04:06 +0100 (CET) From: Jan Engelhardt To: David Woodhouse cc: Jaswinder Singh Rajput , Ingo Molnar , x86 maintainers , urs.thuermann@volkswagen.de, oliver.hartkopp@volkswagen.de, linux-media@vger.kernel.org, netfilter-devel@vger.kernel.org, netfilter@vger.kernel.org, bfields@fieldses.org, neilb@suse.de, linux-nfs@vger.kernel.org, linux-raid@vger.kernel.org, dbrownell@users.sourceforge.net, spi-devel-general@lists.sourceforge.net, netdev@vger.kernel.org, greg@kroah.com, linux-usb@vger.kernel.org, linux-mtd@lists.infradead.org, tiwai@suse.de, mchehab@infradead.org, LKML , Andrew Morton Subject: Re: [GIT PULL -tip] fix 33 make headers_check warnings In-Reply-To: <1232228261.27094.0.camel@macbook.infradead.org> Message-ID: References: <1232223441.3966.22.camel@localhost.localdomain> <1232228261.27094.0.camel@macbook.infradead.org> User-Agent: Alpine 2.00 (LSU 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1008 Lines: 34 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 >> -#else >> +#ifndef __KERNEL__ >> #include >> #endif > >That patch looks wrong, and unnecessary. It was fine before. What itches my eye is #ifndef __KERNEL__ #include #endif I am not sure how much Linux header files are supposed to be usable from C++, but in case someone does, 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 linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/