Skip to contentSkip to conversation

tests/amdgpu/amd_fuzzing_sysfs: use local include for amdgpu_drm.h

PATCH In review [email protected] 3 participants 3 messages May 8 – May 9

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/amdgpu/amd_fuzzing_sysfs: use local include for amdgpu_drm.h

From: Vitaly Prosyak <[email protected]>

The file amd_fuzzing_sysfs.c uses #include <drm/amdgpu_drm.h> which requires the system package libdrm-amdgpu-dev to be installed. This breaks the build on machines (e.g., Intel-only CI) that lack that package.

All other amdgpu test files already use #include amdgpu_drm.h which resolves via the project-local include/drm-uapi/ directory that is already in the build include paths (-I../include/drm-uapi).

Switch to the quoted include to be consistent with the rest of the amdgpu tests and remove the external dependency.

Cc Michael Strawbridge <[email protected]>
---
 tests/amdgpu/amd_fuzzing_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/amdgpu/amd_fuzzing_sysfs.c +1 -1
index b02f3b7ce..381e5388a 100644
@@ -29,7 +29,7 @@
 #include "igt.h"
 #include "igt_sysfs.h"
 #include <amdgpu.h>
-#include <drm/amdgpu_drm.h>
+#include "amdgpu_drm.h"
 #include "amd_sysfs_spec.h"
 
 #define AMDGPU_SYSFS_BASE "/sys/class/drm"
Signature · 1 line
2.54.0
Reviewed-by on v1 1/1
#1 lore raw

AMD General

This looks good.

Michael

________________________________
From: [email protected] <[email protected]>
Sent: 08 May 2026 4:15 PM
To: [email protected] <[email protected]>
Cc: Prosyak, Vitaly <[email protected]>; Strawbridge, Michael <[email protected]>
Subject: [PATCH] tests/amdgpu/amd_fuzzing_sysfs: use local include for amdgpu_drm.h

From: Vitaly Prosyak <[email protected]>

The file amd_fuzzing_sysfs.c uses #include <drm/amdgpu_drm.h> which requires the system package libdrm-amdgpu-dev to be installed. This breaks the build on machines (e.g., Intel-only CI) that lack that package.

All other amdgpu test files already use #include amdgpu_drm.h which resolves via the project-local include/drm-uapi/ directory that is already in the build include paths (-I../include/drm-uapi).

Switch to the quoted include to be consistent with the rest of the amdgpu tests and remove the external dependency.

Cc Michael Strawbridge <[email protected]>
---
 tests/amdgpu/amd_fuzzing_sysfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
tests/amdgpu/amd_fuzzing_sysfs.c +1 -1
index b02f3b7ce..381e5388a 100644
@@ -29,7 +29,7 @@
 #include "igt.h"
 #include "igt_sysfs.h"
 #include <amdgpu.h>
-#include <drm/amdgpu_drm.h>
+#include "amdgpu_drm.h"
 #include "amd_sysfs_spec.h"
 
 #define AMDGPU_SYSFS_BASE "/sys/class/drm"

--
2.54.0