diff mbox

[i-g-t,1/3] Fix rlim_cur compiler warnings when building on ARM.

Message ID 20170927183735.14824-1-eric@anholt.net (mailing list archive)
State New, archived
Headers show

Commit Message

Eric Anholt Sept. 27, 2017, 6:37 p.m. UTC
Signed-off-by: Eric Anholt <eric@anholt.net>
---
 benchmarks/prime_lookup.c | 2 +-
 tests/gem_exec_reuse.c    | 3 ++-
 2 files changed, 3 insertions(+), 2 deletions(-)

Comments

Petri Latvala Sept. 28, 2017, 8:36 a.m. UTC | #1
On Wed, Sep 27, 2017 at 11:37:33AM -0700, Eric Anholt wrote:
> Signed-off-by: Eric Anholt <eric@anholt.net>


For the series:

Reviewed-by: Petri Latvala <petri.latvala@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@lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/intel-gfx
diff mbox

Patch

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;
 }