Skip to contentSkip to conversation

tests/xe_*.c: Fix build break on Ubuntu 22.04.2 LTS

PATCH In review Zbigniew Kempczyński 3 participants 3 messages Jul 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 tests/xe_*.c: Fix build break on Ubuntu 22.04.2 LTS

I've noticed missing fcntl.h include which breaks compilation of xe tests.

---
 tests/xe/xe_sysfs_defaults.c  | 1 +
 tests/xe/xe_sysfs_scheduler.c | 1 +
 2 files changed, 2 insertions(+)
tests/xe/xe_sysfs_defaults.c +1 -0
index a1df312e74..5c9de43e9f 100644
@@ -14,6 +14,7 @@
  */
 
 #include <dirent.h>
+#include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
tests/xe/xe_sysfs_scheduler.c +1 -0
index 9650194732..1da0f541ad 100644
@@ -24,6 +24,7 @@
  */
 
 #include <dirent.h>
+#include <fcntl.h>
 #include <sys/types.h>
 #include <sys/stat.h>
 #include <unistd.h>
Signature · 1 line
2.34.1
Reviewed-by on v1 1/1
#1 lore raw
Quoted 2 lines · Zbigniew Kempczyński

I've noticed missing fcntl.h include which breaks compilation of xe tests.

Also older Ubuntus are impacted, but it's a big nitpick. The patch fixes compilation errors, thanks Zbigniew.

Quoted 32 lines
---
  tests/xe/xe_sysfs_defaults.c  | 1 +
  tests/xe/xe_sysfs_scheduler.c | 1 +
  2 files changed, 2 insertions(+)
tests/xe/xe_sysfs_defaults.c +1 -0
index a1df312e74..5c9de43e9f 100644
@@ -14,6 +14,7 @@
   */
 
  #include <dirent.h>
+#include <fcntl.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <unistd.h>
tests/xe/xe_sysfs_scheduler.c +1 -0
index 9650194732..1da0f541ad 100644
@@ -24,6 +24,7 @@
   */
 
  #include <dirent.h>
+#include <fcntl.h>
  #include <sys/types.h>
  #include <sys/stat.h>
  #include <unistd.h>