lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite for Android: free password hash cracker in your pocket
[<prev] [next>] [day] [month] [year] [list]
Message-ID: <5fb7dc6d.628.18a21c158e8.Coremail.chenxuebing@jari.cn>
Date:   Wed, 23 Aug 2023 17:37:13 +0800 (GMT+08:00)
From:   "XueBing Chen" <chenxuebing@...i.cn>
To:     alexander.deucher@....com, airlied@...il.com, daniel@...ll.ch
Cc:     amd-gfx@...ts.freedesktop.org, dri-devel@...ts.freedesktop.org,
        linux-kernel@...r.kernel.org
Subject: [PATCH] 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 <chenxuebing@...i.cn>
---
 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(-)

diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c
index f9d3d79f68b1..1599e818c696 100644
--- a/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c
+++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_vf_error.c
@@ -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);
 }
diff --git a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
index f52e0278abf9..587586ecdddb 100644
--- a/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
+++ b/drivers/gpu/drm/amd/amdgpu/mxgpu_ai.c
@@ -340,6 +340,7 @@ static int xgpu_ai_mailbox_rcv_irq(struct amdgpu_device *adev,
 	}
 
 
+
 	return 0;
 }
 
-- 
2.17.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ