libdrm/amdgpu: Fixed drm.h include.
PATCH 1/1 libdrm/amdgpu: Fixed drm.h include.
From: Alexandr Akulich <[email protected]>
The include type changed from system to own.
--- include/drm/amdgpu_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/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 · 5 lines
2.4.4 _______________________________________________ dri-devel mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 15 lines · On 17.07.2015 05:19, [email protected] wrote:
From: Alexandr Akulich <[email protected]>
The include type changed from system to own.
Signed-off-by Alexandr Akulich <[email protected]>--- include/drm/amdgpu_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/amdgpu_drm.h +0
-0
include/drm/amdgpu_drm.h line 38
Quoted 8 lines
include/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
It should be
#include <drm.h>
<drm/drm.h> is wrong because that's the path of the kernel header, which not every distro ships.
"drm.h" is wrong because amdgpu_drm.h is used by other projects.
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
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)
At files drm_sarea.h, mga_drm.h, qxl_drm.h, radeon_drm.h and via_drm.h we have
#include "drm.h"
At the same time, at i915_drm.h and tegra_drm.h. we have
#include <drm.h>
I'm pretty sure that the first case is correct, because drm.h is always would be local file (in the same directory), related to amdgpu_drm.h, and that is why local include "drm.h" would be always valid.
This fixes libdrm build with amdgpu support on bare system for me.
Quoted 32 lines · Michel Dänzer
Quoted 15 lines · On 17.07.2015 05:19, [email protected] wrote:
From: Alexandr Akulich <[email protected]>
The include type changed from system to own.
Signed-off-by Alexandr Akulich <[email protected]>--- include/drm/amdgpu_drm.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)include/drm/amdgpu_drm.h +0
-0include/drm/amdgpu_drm.h line 38
Quoted 8 lines
include/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 0x01It should be
#include <
drm.h><
drm/drm.h> is wrong because that's the path of the kernel header, which not every distro ships.
Quoted 6 lines
"
drm.h" is wrong becauseamdgpu_drm.his used by other projects.--
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
Michel Dänzer
Reviewed-byQuoted 3 lines · Alexandr Akulich
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)
https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h
Quoted 4 lines
At files
drm_sarea.h,mga_drm.h,qxl_drm.h,radeon_drm.handvia_drm.hwe have#include "
drm.h"
Quoted 8 lines
At the same time, at
i915_drm.handtegra_drm.h. we have#include <
drm.h>I'm pretty sure that the first case is correct, because
drm.his always would be local file (in the same directory), related toamdgpu_drm.h, and that is why local include "drm.h" would be always valid.
Makes sense to me, the patch is
Quoted 1 line
This fixes libdrm build with amdgpu support on bare system for me.
FWIW though, that's because you're dropping the drm/ prefix, not because you're changing from <> to "".
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 16 lines · Michel Dänzer
Quoted 3 lines · Alexandr Akulich
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h
Quoted 8 lines
At files
drm_sarea.h,mga_drm.h,qxl_drm.h,radeon_drm.handvia_drm.hwe have#include "
drm.h"At the same time, at
i915_drm.handtegra_drm.h. we have#include <
drm.h>
Quoted 8 lines
Quoted 4 lines
I'm pretty sure that the first case is correct, because
drm.his always would be local file (in the same directory), related toamdgpu_drm.h, and that is why local include "drm.h" would be always valid.Makes sense to me, the patch is
Reviewed-by Michel Dänzer <[email protected]>
Thanks! I have no write access to this fd.o repository. Can you apply it please?
Quoted 5 lines
Quoted 2 lines
This fixes libdrm build with amdgpu support on bare system for me.
FWIW though, that's because you're dropping the drm/ prefix, not because you're changing from <> to "".
I know :-). Compiler would "fallback" from <> to "", if it can't find a header in passed include directories.
Quoted 4 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 4 lines
Quoted 3 lines
Makes sense to me, the patch is
Reviewed-by Michel Dänzer <[email protected]>Thanks! I have no write access to this fd.o repository. Can you apply it please?
I mean "apply the patch".
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 22 lines · Alexandr Akulich
Quoted 21 lines · Michel Dänzer
Quoted 3 lines · Alexandr Akulich
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h
Quoted 12 lines
At files
drm_sarea.h,mga_drm.h,qxl_drm.h,radeon_drm.handvia_drm.hwe have#include "
drm.h"At the same time, at
i915_drm.handtegra_drm.h. we have#include <
drm.h>I'm pretty sure that the first case is correct, because
drm.his always would be local file (in the same directory), related toamdgpu_drm.h, and that is why local include "drm.h" would be always valid.
Quoted 4 lines
Quoted 3 lines
Makes sense to me, the patch is
Reviewed-by Michel Dänzer <[email protected]>Thanks! I have no write access to this fd.o repository. Can you apply it please?
I assume your patch is against the amdgpu branch of
http://cgit.freedesktop.org/~agd5f/drm/, right? Only Alex Deucher has write access to that.
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 23 lines · Michel Dänzer
Quoted 22 lines · Alexandr Akulich
Quoted 21 lines · Michel Dänzer
Quoted 3 lines · Alexandr Akulich
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h
Quoted 12 lines
At files
drm_sarea.h,mga_drm.h,qxl_drm.h,radeon_drm.handvia_drm.hwe have#include "
drm.h"At the same time, at
i915_drm.handtegra_drm.h. we have#include <
drm.h>I'm pretty sure that the first case is correct, because
drm.his always would be local file (in the same directory), related toamdgpu_drm.h, and that is why local include "drm.h" would be always valid.
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
Makes sense to me, the patch is
Reviewed-by Michel Dänzer <[email protected]>Thanks! I have no write access to this fd.o repository. Can you apply it please?
I assume your patch is against the amdgpu branch of
http://cgit.freedesktop.org/~agd5f/drm/, right? Only Alex Deucher has write access to that.
Well, what I can do?
Alex, can you apply the patch, please?
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel
Alex Deucher
AppliedQuoted 27 lines · Alexandr Akulich
Quoted 26 lines · Michel Dänzer
Quoted 25 lines · Alexandr Akulich
Quoted 24 lines · Michel Dänzer
Quoted 3 lines · Alexandr Akulich
As I see, this is not a kernel header, but a local (belongs to libdrm) one. (Otherwise, I would like you to point me on such file at, say,
https://github.com/torvalds/linux/tree/master/include/drm)https://github.com/torvalds/linux/blob/master/include/uapi/drm/amdgpu_drm.h
Quoted 4 lines
At files
drm_sarea.h,mga_drm.h,qxl_drm.h,radeon_drm.handvia_drm.hwe have#include "
drm.h"Quoted 8 lines
At the same time, at
i915_drm.handtegra_drm.h. we have#include <
drm.h>I'm pretty sure that the first case is correct, because
drm.his always would be local file (in the same directory), related toamdgpu_drm.h, and that is why local include "drm.h" would be always valid.Makes sense to me, the patch is
Reviewed-by Michel Dänzer <[email protected]>
Quoted 8 lines
Quoted 5 lines
Quoted 1 line
Thanks! I have no write access to this fd.o repository. Can you apply it please?
I assume your patch is against the amdgpu branch of
http://cgit.freedesktop.org/~agd5f/drm/, right? Only Alex Deucher has write access to that.Well, what I can do?
Alex, can you apply the patch, please?
Applied. thanks!
Alex
_______________________________________________
dri-devel mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/dri-devel