[igt-dev] [PATCH i-g-t] tests/xe_*.c: Fix build break on Ubuntu 22.04.2 LTS

Karolina Stolarek karolina.stolarek at intel.com
Tue Jul 4 07:28:56 UTC 2023


On 4.07.2023 09:23, Zbigniew Kempczyński wrote:
> 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.

Reviewed-by: Karolina Stolarek <karolina.stolarek at intel.com>

> 
> Signed-off-by: Zbigniew Kempczyński <zbigniew.kempczynski at intel.com>
> Cc: Karolina Stolarek <karolina.stolarek at intel.com>
> ---
>   tests/xe/xe_sysfs_defaults.c  | 1 +
>   tests/xe/xe_sysfs_scheduler.c | 1 +
>   2 files changed, 2 insertions(+)
> 
> diff --git a/tests/xe/xe_sysfs_defaults.c b/tests/xe/xe_sysfs_defaults.c
> index a1df312e74..5c9de43e9f 100644
> --- a/tests/xe/xe_sysfs_defaults.c
> +++ b/tests/xe/xe_sysfs_defaults.c
> @@ -14,6 +14,7 @@
>    */
>   
>   #include <dirent.h>
> +#include <fcntl.h>
>   #include <sys/types.h>
>   #include <sys/stat.h>
>   #include <unistd.h>
> diff --git a/tests/xe/xe_sysfs_scheduler.c b/tests/xe/xe_sysfs_scheduler.c
> index 9650194732..1da0f541ad 100644
> --- a/tests/xe/xe_sysfs_scheduler.c
> +++ b/tests/xe/xe_sysfs_scheduler.c
> @@ -24,6 +24,7 @@
>    */
>   
>   #include <dirent.h>
> +#include <fcntl.h>
>   #include <sys/types.h>
>   #include <sys/stat.h>
>   #include <unistd.h>


More information about the igt-dev mailing list