diff options
author | Alex Deucher | 2019-03-29 20:14:10 +0100 |
---|---|---|
committer | Alex Deucher | 2019-04-02 16:10:55 +0200 |
commit | 7a65bdc6903d4cae56855eceabfd8f879a3b8f6e (patch) | |
tree | 9f8642195f2ba1d41cb368468802b706f94dd251 | |
parent | Revert "drm/amdgpu: use HMM callback to replace mmu notifier" (diff) | |
download | kernel-qcow2-linux-7a65bdc6903d4cae56855eceabfd8f879a3b8f6e.tar.gz kernel-qcow2-linux-7a65bdc6903d4cae56855eceabfd8f879a3b8f6e.tar.xz kernel-qcow2-linux-7a65bdc6903d4cae56855eceabfd8f879a3b8f6e.zip |
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.
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
-rw-r--r-- | drivers/gpu/drm/amd/powerplay/smu_v11_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |