summaryrefslogtreecommitdiff
path: root/drivers/gpu/host1x/cdma.c
diff options
context:
space:
mode:
authorThierry Reding <treding@nvidia.com>2014-06-12 15:16:54 +0400
committerThierry Reding <treding@nvidia.com>2014-11-13 18:11:35 +0300
commit0169b93f4492c74d046b456d93b37bd7b55ecd42 (patch)
tree3e5b98d7614765522cc6d84b5fc8ba55b30ff616 /drivers/gpu/host1x/cdma.c
parentb40d02bf96e05851d1d16b4a75f66a9e16cfb2fb (diff)
downloadlinux-0169b93f4492c74d046b456d93b37bd7b55ecd42.tar.xz
gpu: host1x: Make mapped field of push buffers void *
This reduces the amount of casting that needs to be done to get rid of annoying warnings on 64-bit builds. Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'drivers/gpu/host1x/cdma.c')
-rw-r--r--drivers/gpu/host1x/cdma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/host1x/cdma.c b/drivers/gpu/host1x/cdma.c
index 3995255b16c7..5a8c8d55317a 100644
--- a/drivers/gpu/host1x/cdma.c
+++ b/drivers/gpu/host1x/cdma.c
@@ -97,7 +97,7 @@ fail:
static void host1x_pushbuffer_push(struct push_buffer *pb, u32 op1, u32 op2)
{
u32 pos = pb->pos;
- u32 *p = (u32 *)((u32)pb->mapped + pos);
+ u32 *p = (u32 *)((void *)pb->mapped + pos);
WARN_ON(pos == pb->fence);
*(p++) = op1;
*(p++) = op2;