Skip to contentSkip to conversation

drm/amdgpu: fix warning in navi10_ih.c

PATCH In review Alex Deucher 2 participants 2 messages Jul 21, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/amdgpu: fix warning in navi10_ih.c

declarations after statements. Trivial.

---
 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
index f16909989c0d..350f1bf063c6 100644
@@ -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 on v1 1/1
#1 lore raw

Andrey

Quoted 17 lines · Alex Deucher

declarations after statements. Trivial.

---
  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
index f16909989c0d..350f1bf063c6 100644
@@ -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 -2
  	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);

_______________________________________________
amd-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/amd-gfx