[RFC PATCH] drm.h: Fix DRM compilation with bare-metal toolchain.

Arnd Bergmann arnd at arndb.de
Tue Apr 16 03:50:03 PDT 2013


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 <linux/types.h>
> >  #include <asm/ioctl.h>

This is still completely bogus, the __KERNEL__ symbol has no significance here.
Either make the compiler define __linux__, or remove this #ifdef completely.

	Arnd


More information about the dri-devel mailing list