summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2016-11-22 17:20:59 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2016-11-22 17:23:00 +0000
commitcddf9960788103e472a53416c77323a2399396a8 (patch)
tree66bc67dce76d3c2e58b61fec870f2833c9060cd2 /tests
parent1634c14c58b5e5fa3c3b4cef64e9f9196ea74f31 (diff)
igt/gem_mmap_gtt: Silence compile warning for !sse4.1
gem_mmap_gtt.c: In function ‘test_huge_copy’: gem_mmap_gtt.c:589:4: warning: passing argument 2 of ‘copy_wc_page’ from incompatible pointer type [enabled by default] copy_wc_page(page, a + PAGE_SIZE*i); ^ gem_mmap_gtt.c:503:13: note: expected ‘const uint32_t *’ but argument is of type ‘char *’ static void copy_wc_page(uint32_t *dst, const uint32_t *src) ^ gem_mmap_gtt.c:601:4: warning: passing argument 2 of ‘copy_wc_page’ from incompatible pointer type [enabled by default] copy_wc_page(page, b + PAGE_SIZE*i); ^ gem_mmap_gtt.c:503:13: note: expected ‘const uint32_t *’ but argument is of type ‘char *’ static void copy_wc_page(uint32_t *dst, const uint32_t *src) Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests')
-rw-r--r--tests/gem_mmap_gtt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap_gtt.c b/tests/gem_mmap_gtt.c
index 4113685e..22e35f03 100644
--- a/tests/gem_mmap_gtt.c
+++ b/tests/gem_mmap_gtt.c
@@ -500,7 +500,7 @@ static void copy_wc_page(void *dst, const void *src)
#pragma GCC pop_options
#else
-static void copy_wc_page(uint32_t *dst, const uint32_t *src)
+static void copy_wc_page(void *dst, const void *src)
{
memcpy(dst, src, PAGE_SIZE);
}