[PATCH] tests/intel/kms_pm_backlight: add include for POSIX basename

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Aug 6 16:25:06 UTC 2024


Hi,
On 2024-07-07 at 12:54:11 +0200, Yureka wrote:

imho subject could be better:

[PATCH] tests/intel/kms_pm_backlight: Fixed build on musl

> fixes build on musl

In description you could write what kind of fix it is,
was it a compilation error? Or a warning?

Bernd, could you take it over and resend with your signed-off-by?
Any other compilation break/warnings missing on musl libc?

Regards,
Kamil

> ---
>  tests/intel/kms_pm_backlight.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/tests/intel/kms_pm_backlight.c b/tests/intel/kms_pm_backlight.c
> index 8672afa7a..c4006b8be 100644
> --- a/tests/intel/kms_pm_backlight.c
> +++ b/tests/intel/kms_pm_backlight.c
> @@ -44,6 +44,7 @@
>  #include <errno.h>
>  #include <unistd.h>
>  #include <time.h>
> +#include <libgen.h> /* for POSIX basename */

Put it after eerno.h

>  #include "igt_device.h"
>  #include "igt_device_scan.h"
>  
> -- 
> 2.45.2
> 


More information about the igt-dev mailing list