[PATCH i-g-t v1 3/3] tests/intel/xe_debugfs: fix musl build

Kamil Konieczny kamil.konieczny at linux.intel.com
Fri Mar 15 13:19:01 UTC 2024


On musl build the PATH_MAX define is missing, fixed this with
including limits.h. Also while at this, move system includes
before igt ones and sort them.

Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138
Cc: Bernd Kuhls <bernd at kuhls.net>
Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/intel/xe_debugfs.c | 11 ++++++-----
 1 file changed, 6 insertions(+), 5 deletions(-)

diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
index 4fd5ebc28..c5a586e9b 100644
--- a/tests/intel/xe_debugfs.c
+++ b/tests/intel/xe_debugfs.c
@@ -12,17 +12,18 @@
  * Description: Validate debugfs entries
  */
 
+#include <fcntl.h>
+#include <dirent.h>
+#include <limits.h>
+#include <string.h>
+#include <sys/types.h>
+
 #include "igt.h"
 #include "igt_sysfs.h"
 #include "xe_drm.h"
 #include "xe/xe_ioctl.h"
 #include "xe/xe_query.h"
 
-#include <fcntl.h>
-#include <string.h>
-#include <sys/types.h>
-#include <dirent.h>
-
 struct {
 	bool warn_on_not_hit;
 } opt = { 0 };
-- 
2.42.0



More information about the igt-dev mailing list