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_mmap_wc.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_mmap_wc.c')
-rw-r--r-- | tests/gem_mmap_wc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/gem_mmap_wc.c b/tests/gem_mmap_wc.c index 8ecb9cca..c11c794a 100644 --- a/tests/gem_mmap_wc.c +++ b/tests/gem_mmap_wc.c @@ -372,7 +372,7 @@ test_set_cache_level(int fd) /* Bind the object to the cursor to force set-cache-level(DISPLAY) */ memset(&res, 0, sizeof(res)); res.count_crtcs = 32; - res.crtc_id_ptr = (uintptr_t)crtc; + res.crtc_id_ptr = to_user_pointer(crtc); do_ioctl(fd, DRM_IOCTL_MODE_GETRESOURCES, &res); for (n = 0; n < res.count_crtcs; n++) { struct drm_mode_crtc mode; |