From 39858a1e752f8f26250171e8658388f0853c176c Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 2 Jan 2017 11:05:21 +0000 Subject: lib: Mass conversion to to_user_pointer() Signed-off-by: Chris Wilson --- lib/igt_dummyload.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lib/igt_dummyload.c') diff --git a/lib/igt_dummyload.c b/lib/igt_dummyload.c index a2bae75a..d664dc94 100644 --- a/lib/igt_dummyload.c +++ b/lib/igt_dummyload.c @@ -127,9 +127,9 @@ static void emit_recursive_batch(igt_spin_t *spin, *++batch = 0; } obj[BATCH].relocation_count++; - obj[BATCH].relocs_ptr = (uintptr_t)relocs; + obj[BATCH].relocs_ptr = to_user_pointer(relocs); - execbuf.buffers_ptr = (uintptr_t)(obj + (2 - execbuf.buffer_count)); + execbuf.buffers_ptr = to_user_pointer(obj + (2 - execbuf.buffer_count)); for (i = 0; i < nengine; i++) { execbuf.flags &= ~ENGINE_MASK; -- cgit v1.2.3