From feb1b39be164019ca47b5d3923873a39d7dd0d77 Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Thu, 21 Jul 2016 13:59:53 -0400 Subject: [PATCH] freedreno: fix warnings Signed-off-by: Rob Clark Tested-by: Rob Herring --- freedreno/msm/msm_ringbuffer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/freedreno/msm/msm_ringbuffer.c b/freedreno/msm/msm_ringbuffer.c index fbfaefae..a78806c8 100644 --- a/freedreno/msm/msm_ringbuffer.c +++ b/freedreno/msm/msm_ringbuffer.c @@ -232,10 +232,10 @@ static uint32_t bo2idx(struct fd_ringbuffer *ring, struct fd_bo *bo, uint32_t fl if (!drmHashLookup(msm_ring->bo_table, bo->handle, &val)) { /* found */ - idx = (uint32_t)val; + idx = (uint32_t)(uintptr_t)val; } else { idx = append_bo(ring, bo); - val = (void *)idx; + val = (void *)(uintptr_t)idx; drmHashInsert(msm_ring->bo_table, bo->handle, val); } msm_bo->current_ring_seqno = msm_ring->seqno;