Skip to content

Commit

Permalink
drm/amdgpu/smu11: fix warning on 32bit arches
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Alex Deucher committed Apr 2, 2019
1 parent 296bb16 commit 7a65bdc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/amd/powerplay/smu_v11_0.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 7a65bdc

Please sign in to comment.