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

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Thu Apr 27 10:41:19 UTC 2023


From: Kamil Konieczny <kamil.konieczny at linux.intel.com>

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>
Signed-off-by: Mauro Carvalho Chehab <mchehab at kernel.org>
---
 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 7342f5414034..662d514a4ef6 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.40.0



More information about the igt-dev mailing list