[PATCH i-g-t] tests/intel/kms_pm_rpm: use basename from libgen.h
Kamil Konieczny
kamil.konieczny at linux.intel.com
Mon Sep 9 15:23:17 UTC 2024
Hi Alyssa,
On 2024-09-04 at 15:49:48 +0200, Alyssa Ross wrote:
> musl only provides the libgen.h version of basename() that may modify
> it's argument. That's fine in this case, because in the one use of
> basename() in this file, the buffer is never read from again.
>
> Signed-off-by: Alyssa Ross <hi at alyssa.is>
Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>
> ---
> tests/intel/kms_pm_rpm.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
> index 5af3e81bc..852e9cb5f 100644
> --- a/tests/intel/kms_pm_rpm.c
> +++ b/tests/intel/kms_pm_rpm.c
> @@ -27,6 +27,7 @@
> #endif
>
> #include <dirent.h>
> +#include <libgen.h>
>
> #include "config.h"
> #include "i915/gem.h"
>
> base-commit: fc3113c8c1e99797b2d4769aaf02265be64a7589
> --
> 2.45.2
>
More information about the igt-dev
mailing list