drm/amdgpu/smu11: fix warning on 32bit arches
authorAlex Deucher <alexander.deucher@amd.com>
Fri, 29 Mar 2019 19:14:10 +0000 (14:14 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 2 Apr 2019 14:10:55 +0000 (09:10 -0500)
Fixes
warning: cast from pointer to integer of different size
[-Wpointer-to-int-cast]
on 32 bit platforms.

Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/powerplay/smu_v11_0.c

index 9d75911..0e4b4b8 100644 (file)
@@ -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);