RE: [PATCH] drm/amdgpu/smu11: fix warning on 32bit arches

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Reviewed-by: Tao Zhou <tao.zhou1@xxxxxxx>

Tao

> -----Original Message-----
> From: amd-gfx <amd-gfx-bounces@xxxxxxxxxxxxxxxxxxxxx> On Behalf Of Alex
> Deucher
> Sent: 2019年3月30日 3:16
> To: amd-gfx@xxxxxxxxxxxxxxxxxxxxx; airlied@xxxxxxxxx
> Cc: Deucher, Alexander <Alexander.Deucher@xxxxxxx>
> Subject: [PATCH] drm/amdgpu/smu11: fix warning on 32bit arches
> 
> Fixes
> warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
> on 32 bit platforms.
> 
> Signed-off-by: Alex Deucher <alexander.deucher@xxxxxxx>
> ---
>  drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> index 9d75911ce674..0e4b4b88af24 100644
> --- a/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> +++ b/drivers/gpu/drm/amd/powerplay/smu_v11_0.c
> @@ -527,7 +527,7 @@ static int
> smu_v11_0_notify_memory_pool_location(struct smu_context *smu)
>  	if (memory_pool->size == 0 || memory_pool->cpu_addr == NULL)
>  		return ret;
> 
> -	address = (uint64_t)memory_pool->cpu_addr;
> +	address = (uintptr_t)memory_pool->cpu_addr;
>  	address_high = (uint32_t)upper_32_bits(address);
>  	address_low  = (uint32_t)lower_32_bits(address);
> 
> --
> 2.20.1
> 
> _______________________________________________
> amd-gfx mailing list
> amd-gfx@xxxxxxxxxxxxxxxxxxxxx
> https://lists.freedesktop.org/mailman/listinfo/amd-gfx
_______________________________________________
amd-gfx mailing list
amd-gfx@xxxxxxxxxxxxxxxxxxxxx
https://lists.freedesktop.org/mailman/listinfo/amd-gfx




[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux