Skip to contentSkip to conversation

drm/amdgpu: Clean up errors in mmhub_v9_4.c

PATCH Applied Ran Sun 2 participants 2 messages Aug 2, 2023 – Aug 7, 2023

Subsystems (2)
lore
Share & tools
lore

Ran Sun

author
#0 lore raw

PATCH 1/1 drm/amdgpu: Clean up errors in mmhub_v9_4.c

Fix the following errors reported by checkpatch:

ERROR: code indent should use tabs where possible
ERROR: space required before the open parenthesis '('

---
 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +2 -2
index e790f890aec6..5718e4d40e66 100644
@@ -108,7 +108,7 @@ static void mmhub_v9_4_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmi
 }
 
 static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev,
-					         int hubid)
+						int hubid)
 {
 	uint64_t value;
 	uint32_t tmp;
@@ -1568,7 +1568,7 @@ static int mmhub_v9_4_get_ras_error_count(struct amdgpu_device *adev,
 	uint32_t sec_cnt, ded_cnt;
 
 	for (i = 0; i < ARRAY_SIZE(mmhub_v9_4_ras_fields); i++) {
-		if(mmhub_v9_4_ras_fields[i].reg_offset != reg->reg_offset)
+		if (mmhub_v9_4_ras_fields[i].reg_offset != reg->reg_offset)
 			continue;
 
 		sec_cnt = (value &
Signature · 1 line
2.17.1
Applied
#1 lore raw

Applied. Thanks!

Quoted 36 lines · Ran Sun

Fix the following errors reported by checkpatch:

ERROR: code indent should use tabs where possible
ERROR: space required before the open parenthesis '('

---
 drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c +2 -3
index e790f890aec6..5718e4d40e66 100644
@@ -108,7 +108,7 @@ static void mmhub_v9_4_setup_vm_pt_regs(struct amdgpu_device *adev, uint32_t vmi
 }
 
 static void mmhub_v9_4_init_system_aperture_regs(struct amdgpu_device *adev,
-                                                int hubid)
+                                               int hubid)
 {
        uint64_t value;
        uint32_t tmp;
@@ -1568,7 +1568,7 @@ static int mmhub_v9_4_get_ras_error_count(struct amdgpu_device *adev,
        uint32_t sec_cnt, ded_cnt;
 
        for (i = 0; i < ARRAY_SIZE(mmhub_v9_4_ras_fields); i++) {
-               if(mmhub_v9_4_ras_fields[i].reg_offset != reg->reg_offset)
+               if (mmhub_v9_4_ras_fields[i].reg_offset != reg->reg_offset)
                        continue;
 
                sec_cnt = (value &
--

2.17.1