[igt-dev] [PATCH i-g-t] tests/i915_pm_freq_api: add missing include

Kamil Konieczny kamil.konieczny at linux.intel.com
Thu Apr 27 10:11:19 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 igt-dev mailing list