[PATCH] drm/amdgpu/display: fix warning on 32 bit in dmub
Harry Wentland
harry.wentland at amd.com
Thu Apr 1 19:49:21 UTC 2021
On 2021-04-01 10:22 a.m., Alex Deucher wrote:
> Use uintptr_t rather than uint64_t.
>
> Signed-off-by: Alex Deucher <alexander.deucher at amd.com>
> Cc: Dave Airlie <airlied at gmail.com>
> Cc: Harry Wentland <Harry.Wentland at amd.com>
Reviewed-by: Harry Wentland <harry.wentland at amd.com>
Harry
> ---
> drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
> index 743d3b7f6f24..e36e89157703 100644
> --- a/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
> +++ b/drivers/gpu/drm/amd/display/dmub/src/dmub_srv.c
> @@ -510,7 +510,7 @@ enum dmub_status dmub_srv_hw_init(struct dmub_srv *dmub,
>
> dmub_memset(&outbox0_rb_params, 0, sizeof(outbox0_rb_params));
> outbox0_rb_params.ctx = dmub;
> - outbox0_rb_params.base_address = (void *)((uint64_t)(tracebuff_fb->cpu_addr) + TRACE_BUFFER_ENTRY_OFFSET);
> + outbox0_rb_params.base_address = (void *)((uintptr_t)(tracebuff_fb->cpu_addr) + TRACE_BUFFER_ENTRY_OFFSET);
> outbox0_rb_params.capacity = tracebuff_fb->size - dmub_align(TRACE_BUFFER_ENTRY_OFFSET, 64);
> dmub_rb_init(&dmub->outbox0_rb, &outbox0_rb_params);
>
>
More information about the amd-gfx
mailing list