[Intel-gfx] [PATCH i-g-t 1/3] Fix rlim_cur compiler warnings when building on ARM.
Petri Latvala
petri.latvala at intel.com
Thu Sep 28 08:36:52 UTC 2017
On Wed, Sep 27, 2017 at 11:37:33AM -0700, Eric Anholt wrote:
> Signed-off-by: Eric Anholt <eric at anholt.net>
For the series:
Reviewed-by: Petri Latvala <petri.latvala at intel.com>
> ---
> benchmarks/prime_lookup.c | 2 +-
> tests/gem_exec_reuse.c | 3 ++-
> 2 files changed, 3 insertions(+), 2 deletions(-)
>
> diff --git a/benchmarks/prime_lookup.c b/benchmarks/prime_lookup.c
> index e995b766a173..d6c397299fcb 100644
> --- a/benchmarks/prime_lookup.c
> +++ b/benchmarks/prime_lookup.c
> @@ -143,7 +143,7 @@ static bool allow_files(unsigned min)
> return false;
>
> igt_info("Current file limit is %ld, estimated we need %d\n",
> - rlim.rlim_cur, min);
> + (long)rlim.rlim_cur, min);
>
> if (rlim.rlim_cur > min)
> return true;
> diff --git a/tests/gem_exec_reuse.c b/tests/gem_exec_reuse.c
> index cdfa9783f5b7..4e3907cf7b52 100644
> --- a/tests/gem_exec_reuse.c
> +++ b/tests/gem_exec_reuse.c
> @@ -122,7 +122,8 @@ static uint64_t max_open_files(void)
> if (getrlimit(RLIMIT_NOFILE, &rlim))
> rlim.rlim_cur = 64 << 10;
>
> - igt_info("Process limit for file descriptors is %lu\n", rlim.rlim_cur);
> + igt_info("Process limit for file descriptors is %lu\n",
> + (long)rlim.rlim_cur);
> return rlim.rlim_cur;
> }
>
> --
> 2.14.1
>
> _______________________________________________
> Intel-gfx mailing list
> Intel-gfx at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
More information about the Intel-gfx
mailing list