diff options
author | Thierry Reding <treding@nvidia.com> | 2013-11-08 13:15:43 +0100 |
---|---|---|
committer | Thierry Reding <treding@nvidia.com> | 2013-12-03 10:04:42 +0100 |
commit | a7ed68fcc73fd91acc0502b88e44a69f78864d89 (patch) | |
tree | a6859d5b5718f76e897100f67862164a43763b63 /drivers/gpu/drm | |
parent | drm/tegra: Tightly bind RGB output to DC (diff) | |
download | linux-a7ed68fcc73fd91acc0502b88e44a69f78864d89.tar.xz linux-a7ed68fcc73fd91acc0502b88e44a69f78864d89.zip |
drm/tegra: Fix address space mismatches
sparse complains because __user annotations aren't placed consistently.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/tegra/drm.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/gpu/drm/tegra/drm.c b/drivers/gpu/drm/tegra/drm.c index 28e178137718..56b29c3cdf2f 100644 --- a/drivers/gpu/drm/tegra/drm.c +++ b/drivers/gpu/drm/tegra/drm.c @@ -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; |