freedreno/kgsl: fix pointer-to-int cast
PATCH 1/1 freedreno/kgsl: fix pointer-to-int cast
Fixes this warning:
freedreno/kgsl/kgsl_ringbuffer.c: In function ‘kgsl_ringbuffer_flush’:freedreno/kgsl/kgsl_ringbuffer.c:149:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
req.timestamp = (uint32_t)kgsl_ring->bo->hostptr;
^Signed-off-by Eric Engestrom <[email protected]>
--- freedreno/kgsl/kgsl_ringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
freedreno/kgsl/kgsl_ringbuffer.c +1 -1
@@ -146,7 +146,7 @@ static int kgsl_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_star ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr; ibdesc.hostptr = kgsl_ring->bo->hostptr; ibdesc.sizedwords =0x145 ; - req.timestamp = (uint32_t )kgsl_ring->bo->hostptr; + req.timestamp = (uintptr_t )kgsl_ring->bo->hostptr; } do {
Signature · 7 lines
Cheers, Eric _______________________________________________ dri-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/dri-devel
Quoted 8 lines · Eric Engestrom
Fixes this warning:
freedreno/kgsl/kgsl_ringbuffer.c: In function ‘kgsl_ringbuffer_flush’:freedreno/kgsl/kgsl_ringbuffer.c:149:19: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]req.timestamp = (uint32_t)kgsl_ring->bo->hostptr; ^Signed-off-by Eric Engestrom <[email protected]>
Reviewed-by Rob Clark <[email protected]>
Quoted 18 lines
--- freedreno/kgsl/kgsl_ringbuffer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)freedreno/kgsl/kgsl_ringbuffer.c +1
-2@@ -146,7 +146,7 @@ static int kgsl_ringbuffer_flush(struct fd_ringbuffer *ring, uint32_t *last_star ibdesc.gpuaddr = kgsl_ring->bo->gpuaddr; ibdesc.hostptr = kgsl_ring->bo->hostptr; ibdesc.sizedwords =0x145 ; - req.timestamp = (uint32_t )kgsl_ring->bo->hostptr; + req.timestamp = (uintptr_t )kgsl_ring->bo->hostptr; } do { --
Quoted 3 lines
Cheers,
Eric
_______________________________________________
dri-devel mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/dri-devel