drm/amdkfd: Fix sparse warning (different address space)
authorOded Gabbay <oded.gabbay@amd.com>
Thu, 8 Jan 2015 14:46:16 +0000 (16:46 +0200)
committerOded Gabbay <oded.gabbay@amd.com>
Thu, 8 Jan 2015 14:46:16 +0000 (16:46 +0200)
Signed-off-by: Oded Gabbay <oded.gabbay@amd.com>
drivers/gpu/drm/amd/amdkfd/kfd_device_queue_manager.c

index 9c8961d22360722a5382de9dde19b35d9b3d27ad..30c8fda9622e507f0fabc0b2386d2240b812360c 100644 (file)
@@ -280,7 +280,7 @@ static int create_compute_queue_nocpsch(struct device_queue_manager *dqm,
                        q->queue);
 
        retval = mqd->load_mqd(mqd, q->mqd, q->pipe,
-                       q->queue, q->properties.write_ptr);
+                       q->queue, (uint32_t __user *) q->properties.write_ptr);
        if (retval != 0) {
                deallocate_hqd(dqm, q);
                mqd->uninit_mqd(mqd, q->mqd, q->mqd_mem_obj);