mirror of
https://github.com/tiagovignatti/intel-gpu-tools.git
synced 2025-06-11 18:06:13 +00:00
igt/gem_reloc_overflow: 32bit compilation warning
gem_reloc_overflow.c: In function ‘__real_main365’: gem_reloc_overflow.c:384:3: warning: format ‘%lu’ expects argument of type ‘long unsigned int’, but argument 6 has type ‘size_t’ [-Wformat=] igt_require_f(mlock(reloc, reloc_size) == 0, ^ Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
This commit is contained in:
parent
5ec85f5bf8
commit
778f0796e8
@ -382,8 +382,8 @@ igt_main
|
||||
MAP_PRIVATE | MAP_ANON, -1, 0);
|
||||
igt_assert(reloc != MAP_FAILED);
|
||||
igt_require_f(mlock(reloc, reloc_size) == 0,
|
||||
"Tests require at least %'lu MiB of available memory\n",
|
||||
reloc_size / (1024*1024));
|
||||
"Tests require at least %'llu MiB of available memory\n",
|
||||
(long long unsigned)reloc_size / (1024*1024));
|
||||
|
||||
/* disable access before + after */
|
||||
mprotect(reloc, 4096, 0);
|
||||
|
Loading…
x
Reference in New Issue
Block a user