Skip to contentSkip to conversation

libdrm/amdgpu: Fixed drm.h include.

PATCH Applied [email protected] 3 participants 9 messages Jul 16, 2015 – Jul 29, 2015 DRM drivers

lore
Share & tools
lore
#0 lore raw

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
index b6fce90..25e9b0a 100644
@@ -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
#1 lore raw
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.

---
 include/drm/amdgpu_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/amdgpu_drm.h +0 -0
index b6fce90..25e9b0a 100644

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
#2 lore raw

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.

---
 include/drm/amdgpu_drm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/drm/amdgpu_drm.h +0 -0
index b6fce90..25e9b0a 100644

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.

Quoted 6 lines

"drm.h" is wrong because amdgpu_drm.h is 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

Reviewed-by
#3 lore raw
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.h and via_drm.h we have

#include "drm.h"

Quoted 8 lines

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.

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
#4 lore raw
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.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>

Quoted 8 lines
Quoted 4 lines

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.

Makes sense to me, the patch is

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

#6 lore raw
In reply to Alexandr Akulich
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.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.

Quoted 4 lines
Quoted 3 lines

Makes sense to me, the patch is

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
#7 lore raw
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.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.

Quoted 8 lines
Quoted 4 lines
Quoted 3 lines

Makes sense to me, the patch is

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

Applied
#8 lore raw
Quoted 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.h and via_drm.h we have

#include "drm.h"

Quoted 8 lines

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.

Makes sense to me, the patch is

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