[PATCH i-g-t v1 3/3] tests/intel/xe_debugfs: fix musl build

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


On Fri, 15 Mar 2024 14:19:01 +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. Also while at this, move system includes
> before igt ones and sort them.
> 
> 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>

> ---
>  tests/intel/xe_debugfs.c | 11 ++++++-----
>  1 file changed, 6 insertions(+), 5 deletions(-)
> 
> diff --git a/tests/intel/xe_debugfs.c b/tests/intel/xe_debugfs.c
> index 4fd5ebc28..c5a586e9b 100644
> --- a/tests/intel/xe_debugfs.c
> +++ b/tests/intel/xe_debugfs.c
> @@ -12,17 +12,18 @@
>   * Description: Validate debugfs entries
>   */
>  
> +#include <fcntl.h>
> +#include <dirent.h>
> +#include <limits.h>
> +#include <string.h>
> +#include <sys/types.h>
> +
>  #include "igt.h"
>  #include "igt_sysfs.h"
>  #include "xe_drm.h"
>  #include "xe/xe_ioctl.h"
>  #include "xe/xe_query.h"
>  
> -#include <fcntl.h>
> -#include <string.h>
> -#include <sys/types.h>
> -#include <dirent.h>
> -
>  struct {
>  	bool warn_on_not_hit;
>  } opt = { 0 };


More information about the igt-dev mailing list