aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
diff options
context:
space:
mode:
authorBob Zhou <[email protected]>2024-06-07 08:33:35 +0000
committerAlex Deucher <[email protected]>2024-06-14 20:17:12 +0000
commitbe6a69b21a3517122ba6cf7ab8f62f4803637dbe (patch)
tree0bdd493e0f7459babcd63aeb9f0f1e8a34c04531 /drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
parentdrm/amdgpu: Indicate CU havest info to CP (diff)
downloadkernel-be6a69b21a3517122ba6cf7ab8f62f4803637dbe.tar.gz
kernel-be6a69b21a3517122ba6cf7ab8f62f4803637dbe.zip
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 <[email protected]> Acked-by: Christian König <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c')
-rw-r--r--drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
index 8928f9160822..b4ce3375d3fd 100644
--- a/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
+++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v3_3.c
@@ -613,7 +613,7 @@ static int mmhub_v3_3_set_clockgating(struct amdgpu_device *adev,
static void mmhub_v3_3_get_clockgating(struct amdgpu_device *adev, u64 *flags)
{
- int data;
+ u32 data;
if (amdgpu_sriov_vf(adev))
*flags = 0;