drm/radeon: Drop drm/ prefix for including drm.h in radeon_drm.h
Subsystems (3)
PATCH 1/2 drm/radeon: Drop drm/ prefix for including drm.h in radeon_drm.h
From: Michel Dänzer <[email protected]>
This allows radeon_drm.h to be reused verbatim in libdrm.
--- include/uapi/drm/radeon_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/radeon_drm.h +1 -1
@@ -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)
Signature · 6 lines
2.1.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
PATCH 2/2 drm/amdgpu: Drop drm/ prefix for including drm.h in amdgpu_drm.h
From: Michel Dänzer <[email protected]>
This allows amdgpu_drm.h to be reused verbatim in libdrm.
--- include/uapi/drm/amdgpu_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/uapi/drm/amdgpu_drm.h +1 -1
@@ -32,7 +32,7 @@#ifndef __AMDGPU_DRM_H__#define __AMDGPU_DRM_H__ -#include <drm/drm.h> +#include "drm.h" #define DRM_AMDGPU_GEM_CREATE 0x00#define DRM_AMDGPU_GEM_MMAP 0x01
Signature · 6 lines
2.1.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Re: [PATCH 2/2] drm/amdgpu: Drop drm/ prefix for including drm.h in amdgpu_drm.h
Quoted 5 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This allows
amdgpu_drm.hto be reused verbatim in libdrm.Signed-off-by Michel Dänzer <[email protected]>
Quoted 20 lines
--- include/uapi/drm/amdgpu_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/drm/amdgpu_drm.h +1
-2@@ -32,7 +32,7 @@#ifndef __AMDGPU_DRM_H__#define __AMDGPU_DRM_H__ -#include <drm/drm.h> +#include "drm.h" #define DRM_AMDGPU_GEM_CREATE 0x00#define DRM_AMDGPU_GEM_MMAP 0x01 --2.1.4
Quoted 4 lines
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 5 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This allows
radeon_drm.hto be reused verbatim in libdrm.Signed-off-by Michel Dänzer <[email protected]>
For both patches Reviewed-by: Christian König <[email protected]>
Quoted 9 lines
--- include/uapi/drm/radeon_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/drm/radeon_drm.h +0
-0
include/uapi/drm/radeon_drm.h line 39
Quoted 8 lines
include/uapi/drm/radeon_drm.h +1
-1@@ -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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Christian König
Quoted 5 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This allows
radeon_drm.hto be reused verbatim in libdrm.Signed-off-by Michel Dänzer <[email protected]>For both patches Reviewed-by: Christian König <[email protected]>
#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
Quoted 21 lines
Quoted 10 lines
--- include/uapi/drm/radeon_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/uapi/drm/radeon_drm.h +0
-0include/uapi/drm/radeon_drm.h line 37
Quoted 6 lines
include/uapi/drm/radeon_drm.h +1
-1@@ -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
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 16 lines · Daniel Vetter
Quoted 8 lines · Christian König
Quoted 5 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This allows
radeon_drm.hto be reused verbatim in libdrm.Signed-off-by Michel Dänzer <[email protected]>For both patches Reviewed-by: Christian König <[email protected]>
#ifdef
__KERNEL__
#include <drm/drm.h>
#else
#include <drm.h>
#endif
Quoted 6 lines
then run
$ make headers_installand copy results verbatim to libdrm. That's at least how it's supposed to be done.
What's the point of that?
#include "drm.h"
works in the kernel as well as in libdrm.
Signature · 6 lines
Earthling Michel Dänzer | http://www.amd.com Libre software enthusiast | Mesa and X developer _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 21 lines · Michel Dänzer
Quoted 20 lines · Daniel Vetter
Quoted 8 lines · Christian König
Quoted 5 lines · Michel Dänzer
From: Michel Dänzer <[email protected]>
This allows
radeon_drm.hto be reused verbatim in libdrm.Signed-off-by Michel Dänzer <[email protected]>For both patches Reviewed-by: Christian König <[email protected]>
#ifdef
__KERNEL__
#include <drm/drm.h>
#else
#include <drm.h>
#endifthen run
$ make headers_install
Quoted 8 lines
Quoted 2 lines
and copy results verbatim to libdrm. That's at least how it's supposed to be done.
What's the point of that?
#include "
drm.h"works in the kernel as well as in libdrm.
None for this case, was just an example how to handle the userspace headers since you've said verbatim copy. It shouldn't ever be a verbatim copy but always go through make headers_install. And it might make sense to clean this up for all drivers since there's a bunch of random differences in these. Anyway was just an idea.
-Daniel
Signature · 7 lines
Daniel Vetter Software Engineer, Intel Corporation http://blog.ffwll.ch _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel