[PATCH i-g-t v1 1/3] lib/igt_sriov_device: fix musl libc build

Mauro Carvalho Chehab mauro.chehab at linux.intel.com
Mon Mar 18 13:38:43 UTC 2024


On Fri, 15 Mar 2024 14:18:59 +0100
Kamil Konieczny <kamil.konieczny at linux.intel.com> wrote:

> On musl build the PATH_MAX define is missing, fixed this with
> including limits.h
> 
> Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138
> Cc: Bernd Kuhls <bernd at kuhls.net>
> Signed-off-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

LGTM.
Reviewed-by: Mauro Carvalho Chehab <mchehab at kernel.org>

> ---
>  lib/igt_sriov_device.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/lib/igt_sriov_device.c b/lib/igt_sriov_device.c
> index f425a5ecf..a0ef05d5c 100644
> --- a/lib/igt_sriov_device.c
> +++ b/lib/igt_sriov_device.c
> @@ -5,6 +5,7 @@
>  
>  #include <dirent.h>
>  #include <errno.h>
> +#include <limits.h>
>  #include <pciaccess.h>
>  
>  #include "drmtest.h"


More information about the igt-dev mailing list