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

Andrzej Hajda andrzej.hajda at intel.com
Thu Apr 27 12:06:20 UTC 2023



On 27.04.2023 12:41, Mauro Carvalho Chehab wrote:
> 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>

Reviewed-by: Andrzej Hajda <andrzej.hajda at intel.com>

Regards
Andrzej
> ---
>   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"



More information about the igt-dev mailing list