[igt-dev] [PATCH i-g-t 2/7] tests/eviction_common: Fix compiler warn on 32bit
Ville Syrjala
ville.syrjala at linux.intel.com
Tue Jan 14 14:25:18 UTC 2020
From: Ville Syrjälä <ville.syrjala at linux.intel.com>
../tests/eviction_common.c:141:37: warning: passing argument 1 of ‘intel_get_total_pinnable_mem’ from incompatible pointer type [-Wincompatible-pointer-types]
../lib/igt_aux.h:206:7: note: expected ‘size_t *’ {aka ‘unsigned int *’} but argument is of type ‘uint64_t *’ {aka ‘long long unsigned int *’}
Signed-off-by: Ville Syrjälä <ville.syrjala at linux.intel.com>
---
tests/eviction_common.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tests/eviction_common.c b/tests/eviction_common.c
index a3b9e4167a0b..8446c421b416 100644
--- a/tests/eviction_common.c
+++ b/tests/eviction_common.c
@@ -30,7 +30,6 @@
#include "igt.h"
#include <stdlib.h>
-
struct igt_eviction_test_ops {
uint32_t (*create)(int fd, uint64_t size);
void (*flink)(uint32_t old_handle, uint32_t new_handle);
@@ -133,7 +132,8 @@ static void mlocked_evictions(int fd, struct igt_eviction_test_ops *ops,
uint64_t surface_size,
uint64_t surface_count)
{
- uint64_t sz, pin, total;
+ uint64_t sz, pin;
+ size_t total;
void *mem;
intel_require_memory(surface_count, surface_size, CHECK_RAM);
--
2.24.1
More information about the igt-dev
mailing list