drm/tegra: Fix address space mismatches
authorThierry Reding <treding@nvidia.com>
Fri, 8 Nov 2013 12:15:43 +0000 (13:15 +0100)
committerThierry Reding <treding@nvidia.com>
Tue, 3 Dec 2013 09:04:42 +0000 (10:04 +0100)
sparse complains because __user annotations aren't placed consistently.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/drm.c

index 28e178137718090f317c8884da071458900cce65..56b29c3cdf2f424b2c1c126f9386c88f45e59ab7 100644 (file)
@@ -135,11 +135,11 @@ int tegra_drm_submit(struct tegra_drm_context *context,
        unsigned int num_relocs = args->num_relocs;
        unsigned int num_waitchks = args->num_waitchks;
        struct drm_tegra_cmdbuf __user *cmdbufs =
-               (void * __user)(uintptr_t)args->cmdbufs;
+               (void __user *)(uintptr_t)args->cmdbufs;
        struct drm_tegra_reloc __user *relocs =
-               (void * __user)(uintptr_t)args->relocs;
+               (void __user *)(uintptr_t)args->relocs;
        struct drm_tegra_waitchk __user *waitchks =
-               (void * __user)(uintptr_t)args->waitchks;
+               (void __user *)(uintptr_t)args->waitchks;
        struct drm_tegra_syncpt syncpt;
        struct host1x_job *job;
        int err;
@@ -204,7 +204,7 @@ int tegra_drm_submit(struct tegra_drm_context *context,
        if (err)
                goto fail;
 
-       err = copy_from_user(&syncpt, (void * __user)(uintptr_t)args->syncpts,
+       err = copy_from_user(&syncpt, (void __user *)(uintptr_t)args->syncpts,
                             sizeof(syncpt));
        if (err)
                goto fail;