diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:05:21 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2017-01-02 11:17:13 +0000 |
commit | 4de67b26788c60c19254c3e69e151ee200453895 (patch) | |
tree | 566eda27dcfe0f8266ba1931681003b9b76d8642 /tests/gem_pwrite_pread.c | |
parent | 0517d877b65bade23332cba0828acae7ae5fccb9 (diff) |
igt: Mass conversion to to_user_pointer()
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_pwrite_pread.c')
-rw-r--r-- | tests/gem_pwrite_pread.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/gem_pwrite_pread.c b/tests/gem_pwrite_pread.c index fe136d31..e1543f22 100644 --- a/tests/gem_pwrite_pread.c +++ b/tests/gem_pwrite_pread.c @@ -82,10 +82,10 @@ static inline void build_batch(uint32_t *batch, int len, uint32_t *batch_len) struct drm_i915_gem_exec_object2 exec[] = { \ { src }, \ { dst }, \ - { gem_create(fd, 4096), 2, (uintptr_t)reloc } \ + { gem_create(fd, 4096), 2, to_user_pointer(reloc) } \ }; \ struct drm_i915_gem_execbuffer2 execbuf = { \ - (uintptr_t)exec, 3, \ + to_user_pointer(exec), 3, \ 0, 0, \ 0, 0, 0, 0, \ exec_flags, \ |