drm/amdgpu: fix warning in navi10_ih.c
Subsystems (2)
PATCH 1/1 drm/amdgpu: fix warning in navi10_ih.c
declarations after statements. Trivial.
Signed-off-by Alex Deucher <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/navi10_ih.c +4 -2
@@ -58,11 +58,13 @@ static void force_update_wptr_for_self_int(struct amdgpu_device *adev, u32 threshold, u32 timeout, bool enabled) { + u32 ih_cntl, ih_rb_cntl; +if (adev->asic_type <CHIP_SIENNA_CICHLID )return ; -u32 ih_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_CNTL2); -u32 ih_rb_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_RB_CNTL_RING1); + ih_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_CNTL2); + ih_rb_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_RB_CNTL_RING1); ih_cntl =REG_SET_FIELD (ih_cntl,IH_CNTL2 ,SELF_IV_FORCE_WPTR_UPDATE_TIMEOUT , timeout);
Signature · 6 lines
2.25.4 _______________________________________________ amd-gfx mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/amd-gfx
Reviewed-by Andrey Grodzovsky <[email protected]>
Andrey
Quoted 17 lines · Alex Deucher
declarations after statements. Trivial.
Signed-off-by Alex Deucher <[email protected]>--- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)drivers/gpu/drm/amd/amdgpu/navi10_ih.c +2
-0@@ -58,11 +58,13 @@ static void force_update_wptr_for_self_int(struct amdgpu_device *adev, u32 threshold, u32 timeout, bool enabled) { + u32 ih_cntl, ih_rb_cntl; +
drivers/gpu/drm/amd/amdgpu/navi10_ih.c static void · line 70
Quoted 10 lines
drivers/gpu/drm/amd/amdgpu/navi10_ih.c +2
-2if (adev->asic_type <CHIP_SIENNA_CICHLID )return ; -u32 ih_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_CNTL2); -u32 ih_rb_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_RB_CNTL_RING1); + ih_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_CNTL2); + ih_rb_cntl =RREG32_SOC15 (OSSSYS ,0 , mmIH_RB_CNTL_RING1); ih_cntl =REG_SET_FIELD (ih_cntl,IH_CNTL2 ,SELF_IV_FORCE_WPTR_UPDATE_TIMEOUT , timeout);
_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx