Igt-dev Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Ville Syrjala <ville.syrjala@linux.intel.com>
To: igt-dev@lists.freedesktop.org
Subject: [igt-dev] [PATCH i-g-t 2/7] tests/eviction_common: Fix compiler warn on 32bit
Date: Tue, 14 Jan 2020 16:25:18 +0200	[thread overview]
Message-ID: <20200114142523.10603-2-ville.syrjala@linux.intel.com> (raw)
In-Reply-To: <20200114142523.10603-1-ville.syrjala@linux.intel.com>

From: Ville Syrjälä <ville.syrjala@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@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

_______________________________________________
igt-dev mailing list
igt-dev@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/igt-dev

  reply	other threads:[~2020-01-14 14:25 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-01-14 14:25 [igt-dev] [PATCH i-g-t 1/7] tests/kms_vrr: Fix compiler warn on 32bit Ville Syrjala
2020-01-14 14:25 ` Ville Syrjala [this message]
2020-01-14 14:25 ` [igt-dev] [PATCH i-g-t 3/7] tests/perf: " Ville Syrjala
2020-01-14 14:25 ` [igt-dev] [PATCH i-g-t 4/7] lib/intel_aux_pgtable: Fix uint64_t vs. long mismatch Ville Syrjala
2020-01-14 14:25 ` [igt-dev] [PATCH i-g-t 5/7] tests/kms_dp_tiled_display: Use labs() for long Ville Syrjala
2020-01-14 14:25 ` [igt-dev] [PATCH i-g-t 6/7] tools/cnl_compute_wrpll: Fix abs(unsigned) Ville Syrjala
2020-01-14 14:25 ` [igt-dev] [PATCH i-g-t 7/7] tools/intel_panel_fitter: " Ville Syrjala
2020-01-14 14:29   ` Chris Wilson
2020-01-14 15:24 ` [igt-dev] ✓ Fi.CI.BAT: success for series starting with [i-g-t,1/7] tests/kms_vrr: Fix compiler warn on 32bit Patchwork
2020-01-16 18:49 ` [igt-dev] ✓ Fi.CI.IGT: " Patchwork

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200114142523.10603-2-ville.syrjala@linux.intel.com \
    --to=ville.syrjala@linux.intel.com \
    --cc=igt-dev@lists.freedesktop.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox