[PATCH i-g-t 1/2] tests/i915_pm_freq_api: add missing include

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Apr 27 09:41:20 UTC 2023


Add missing include file. This fixes armhf, aarch64 and mips
cross-compilation error:

../tests/i915/i915_pm_freq_api.c:80:46: error: ‘O_WRONLY’ undeclared (first use in this function); did you mean ‘STA_RONLY’?

Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
---
 tests/i915/i915_pm_freq_api.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/i915/i915_pm_freq_api.c b/tests/i915/i915_pm_freq_api.c
index 7342f5414..662d514a4 100644
--- a/tests/i915/i915_pm_freq_api.c
+++ b/tests/i915/i915_pm_freq_api.c
@@ -3,6 +3,8 @@
  * Copyright © 2023 Intel Corporation
  */
 
+#include <fcntl.h>
+
 #include "i915/gem.h"
 #include "igt_sysfs.h"
 #include "igt.h"
-- 
2.37.2



More information about the Intel-gfx-trybot mailing list