diff options
| author | Bob Zhou <[email protected]> | 2024-06-07 08:33:35 +0000 |
|---|---|---|
| committer | Alex Deucher <[email protected]> | 2024-06-14 20:17:12 +0000 |
| commit | be6a69b21a3517122ba6cf7ab8f62f4803637dbe (patch) | |
| tree | 0bdd493e0f7459babcd63aeb9f0f1e8a34c04531 /drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | |
| parent | drm/amdgpu: Indicate CU havest info to CP (diff) | |
| download | kernel-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_v2_0.c')
| -rw-r--r-- | drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c index 02fd45261399..a0cc8e218ca1 100644 --- a/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c +++ b/drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c @@ -671,7 +671,7 @@ static int mmhub_v2_0_set_clockgating(struct amdgpu_device *adev, static void mmhub_v2_0_get_clockgating(struct amdgpu_device *adev, u64 *flags) { - int data, data1; + u32 data, data1; if (amdgpu_sriov_vf(adev)) *flags = 0; |
