[PATCH 1/2] drm/radeon: Drop drm/ prefix for including drm.h in radeon_drm.h

Daniel Vetter daniel at ffwll.ch
Wed Jul 22 02:16:49 PDT 2015


On Wed, Jul 22, 2015 at 10:38:18AM +0200, Christian König wrote:
> On 22.07.2015 10:29, Michel Dänzer wrote:
> >From: Michel Dänzer <michel.daenzer at amd.com>
> >
> >This allows radeon_drm.h to be reused verbatim in libdrm.
> >
> >Signed-off-by: Michel Dänzer <michel.daenzer at amd.com>
> 
> For both patches Reviewed-by: Christian König <christian.koenig at amd.com>

#ifdef __KERNEL__
#include <drm/drm.h>
#else
#include <drm.h>
#endif

then run

$ make headers_install

and copy results verbatim to libdrm. That's at least how it's supposed to
be done. Might be useful to do that for all headers and sync up latest
headers with their copies in libdrm ...
-Daniel

> 
> >---
> >  include/uapi/drm/radeon_drm.h | 2 +-
> >  1 file changed, 1 insertion(+), 1 deletion(-)
> >
> >diff --git a/include/uapi/drm/radeon_drm.h b/include/uapi/drm/radeon_drm.h
> >index 1ef7666..01aa2a8 100644
> >--- a/include/uapi/drm/radeon_drm.h
> >+++ b/include/uapi/drm/radeon_drm.h
> >@@ -33,7 +33,7 @@
> >  #ifndef __RADEON_DRM_H__
> >  #define __RADEON_DRM_H__
> >-#include <drm/drm.h>
> >+#include "drm.h"
> >  /* WARNING: If you change any of these defines, make sure to change the
> >   * defines in the X server file (radeon_sarea.h)
> 
> _______________________________________________
> dri-devel mailing list
> dri-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/dri-devel

-- 
Daniel Vetter
Software Engineer, Intel Corporation
http://blog.ffwll.ch


More information about the dri-devel mailing list