[igt-dev] [PATCH v3 7/7] tests: include limits.h to fix build with musl libc

Kamil Konieczny kamil.konieczny at linux.intel.com
Tue Oct 31 18:17:28 UTC 2023


Hi Bernd,
On 2023-10-30 at 20:58:09 +0100, Bernd Kuhls wrote:
> From: Stefano Ragni <st3r4g at protonmail.com>
> 
> Original patch was added to void-linux:
> https://github.com/void-linux/void-packages/commit/ddfc1f66a0c571b420303c33aed29fd38ace4fc7
> 
> Bug report with request to split the original patch into some
> functional changes:
> Link: https://gitlab.freedesktop.org/drm/igt-gpu-tools/-/issues/138
> 
> Signed-off-by: Stefano Ragni <st3r4g at protonmail.com>
> Signed-off-by: Bernd Kuhls <bernd at kuhls.net>
> [Bernd: alphabetically sorted includes, removed includes not needed
>  anymore, patched tests/intel/kms_pm_rpm.c instead of
>  tests/intel/i915_pm_rpm.c]

Reviewed-by: Kamil Konieczny <kamil.konieczny at linux.intel.com>

> ---
> v3: split patches for lib/ and tests/ (Kamil)
>     moved include in kms_pm_rpm.c (Kamil)
> 
>  tests/intel/kms_pm_rpm.c      | 1 +
>  tests/kms_sysfs_edid_timing.c | 1 +
>  2 files changed, 2 insertions(+)
> 
> diff --git a/tests/intel/kms_pm_rpm.c b/tests/intel/kms_pm_rpm.c
> index 14f34d904..7e54c8619 100644
> --- a/tests/intel/kms_pm_rpm.c
> +++ b/tests/intel/kms_pm_rpm.c
> @@ -17,6 +17,7 @@
>   * Test category: functionality test
>   */
>  
> +#include <limits.h> // PATH_MAX
>  #if defined(__linux__)
>  #include <linux/i2c.h>
>  #include <linux/i2c-dev.h>
> diff --git a/tests/kms_sysfs_edid_timing.c b/tests/kms_sysfs_edid_timing.c
> index ee47a024e..c371a5e5e 100644
> --- a/tests/kms_sysfs_edid_timing.c
> +++ b/tests/kms_sysfs_edid_timing.c
> @@ -24,6 +24,7 @@
>  
>  #include <dirent.h>
>  #include <fcntl.h>
> +#include <limits.h> // PATH_MAX
>  #include <sys/stat.h>
>  /**
>   * TEST: kms sysfs edid timing
> -- 
> 2.39.2
> 


More information about the igt-dev mailing list