From: "Jon Medhurst (Tixy)" Subject: Re: [RFC PATCH] drm.h: Fix DRM compilation with bare-metal toolchain. Date: Wed, 17 Apr 2013 11:55:37 +0100 Message-ID: <1366196137.3383.54.camel@linaro1.home> References: <1365809306-1323-1-git-send-email-nm@ti.com> <20130416124828.3c53e7f8@x34f> <26789313.AOGUY9QNc3@wuerfel> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <26789313.AOGUY9QNc3@wuerfel> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: linaro-dev-bounces-cunTk1MwBs8s++Sfvej+rw@public.gmane.org Sender: linaro-dev-bounces-cunTk1MwBs8s++Sfvej+rw@public.gmane.org To: Arnd Bergmann Cc: Nishanth Menon , David Airlie , linaro-dev-cunTk1MwBs8s++Sfvej+rw@public.gmane.org, dri-devel List-Id: dri-devel@lists.freedesktop.org On Tue, 2013-04-16 at 12:50 +0200, Arnd Bergmann wrote: > On Tuesday 16 April 2013 12:48:28 Paul Sokolovsky wrote: > > > diff --git a/include/uapi/drm/drm.h b/include/uapi/drm/drm.h > > > index 8d1e2bb..73a99e4 100644 > > > --- a/include/uapi/drm/drm.h > > > +++ b/include/uapi/drm/drm.h > > > @@ -36,7 +36,7 @@ > > > #ifndef _DRM_H_ > > > #define _DRM_H_ > > > > > > -#if defined(__linux__) > > > +#if defined(__KERNEL__) || defined(__linux__) > > > > > > #include > > > #include > > This is still completely bogus, the __KERNEL__ symbol has no significance here. > Either make the compiler define __linux__, or remove this #ifdef completely. I don't have the full background here but thought I would point out that a similar issue seems to have just cropped up with fuse.h ... http://lkml.org/lkml/2013/4/15/487 -- Tixy