From 4de67b26788c60c19254c3e69e151ee200453895 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Jan 2017 11:05:21 +0000 Subject: igt: Mass conversion to to_user_pointer() Signed-off-by: Chris Wilson --- tests/gem_cs_prefetch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/gem_cs_prefetch.c') diff --git a/tests/gem_cs_prefetch.c b/tests/gem_cs_prefetch.c index 6d690456..fd9bb793 100644 --- a/tests/gem_cs_prefetch.c +++ b/tests/gem_cs_prefetch.c @@ -118,11 +118,11 @@ static void test_ring(unsigned ring) /* Fill the entire gart with batches and run them. */ memset(obj, 0, sizeof(obj)); obj[1].handle = shadow.handle; - obj[1].relocs_ptr = (uintptr_t)&shadow.reloc; + obj[1].relocs_ptr = to_user_pointer(&shadow.reloc); obj[1].relocation_count = 1; memset(&execbuf, 0, sizeof(execbuf)); - execbuf.buffers_ptr = (uintptr_t)obj; + execbuf.buffers_ptr = to_user_pointer(obj); execbuf.flags = ring; if (gen < 6) execbuf.flags |= I915_EXEC_SECURE; -- cgit v1.2.3