]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/amdgpu: fix overflowed constant warning in mmhub_set_clockgating()
authorBob Zhou <bob.zhou@amd.com>
Fri, 7 Jun 2024 08:33:35 +0000 (16:33 +0800)
committerAlex Deucher <alexander.deucher@amd.com>
Fri, 14 Jun 2024 20:17:12 +0000 (16:17 -0400)
commitbe6a69b21a3517122ba6cf7ab8f62f4803637dbe
tree0bdd493e0f7459babcd63aeb9f0f1e8a34c04531
parent199d69d5f9fbfbeafbf231fd9f49d00b8e7be2c0
drm/amdgpu: fix overflowed constant warning in mmhub_set_clockgating()

To fix potential overflowed constant warning, modify the variables to u32
for getting the return value of RREG32_SOC15().

Signed-off-by: Bob Zhou <bob.zhou@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/mmhub_v1_7.c
drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c
drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c