drm/amdgpu/amdgpu: Clean up errors in amdgpu_vf_error.c
Subsystems (2)
PATCH 1/1 drm/amdgpu/amdgpu: Clean up errors in amdgpu_vf_error.c
Fix the following errors reported by checkpatch:
ERROR: space prohibited before open square bracket '['
ERROR: space prohibited before that '++' (ctx:WxO)
ERROR: spaces required around that '=' (ctx:WxV)
Signed-off-by XueBing Chen <[email protected]>
--- drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c | 12 ++++++------ drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c | 1 + 2 files changed, 7 insertions(+), 6 deletions(-)
drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c +6 -6
@@ -40,10 +40,10 @@ void amdgpu_vf_error_put(struct amdgpu_device *adev,mutex_lock (&adev->virt.vf_errors.lock); index = adev->virt.vf_errors.write_count %AMDGPU_VF_ERROR_ENTRY_SIZE ; - adev->virt.vf_errors.code [index] = error_code; - adev->virt.vf_errors.flags [index] = error_flags; - adev->virt.vf_errors.data [index] = error_data; - adev->virt.vf_errors.write_count ++; + adev->virt.vf_errors.code[index] = error_code; + adev->virt.vf_errors.flags[index] = error_flags; + adev->virt.vf_errors.data[index] = error_data; + adev->virt.vf_errors.write_count++;mutex_unlock (&adev->virt.vf_errors.lock); }
@@ -73,14 +73,14 @@ void amdgpu_vf_error_trans_all(struct amdgpu_device *adev) }while (adev->virt.vf_errors.read_count < adev->virt.vf_errors.write_count) { - index =adev->virt.vf_errors.read_count %AMDGPU_VF_ERROR_ENTRY_SIZE ; + index = adev->virt.vf_errors.read_count %AMDGPU_VF_ERROR_ENTRY_SIZE ; data1 =AMDGIM_ERROR_CODE_FLAGS_TO_MAILBOX (adev->virt.vf_errors.code[index], adev->virt.vf_errors.flags[index]); data2 = adev->virt.vf_errors.data[index] &0xFFFFFFFF ; data3 = (adev->virt.vf_errors.data[index] >>32 ) &0xFFFFFFFF ; adev->virt.ops->trans_msg (adev,IDH_LOG_VF_ERROR , data1, data2, data3); - adev->virt.vf_errors.read_count ++; + adev->virt.vf_errors.read_count++; }mutex_unlock (&adev->virt.vf_errors.lock); }
drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c +1 -0
@@ -340,6 +340,7 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev, } +return 0 ; }
Signature · 1 line
2.17.1