[Intel-gfx] [PATCH i-g-t 1/3] Fix rlim_cur compiler warnings when building on ARM.
Eric Anholt
eric at anholt.net
Wed Sep 27 18:37:33 UTC 2017
Signed-off-by: Eric Anholt <eric at anholt.net>
---
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
More information about the Intel-gfx
mailing list