mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: "XueBing Chen" <chenxuebing@jari.cn>
To: alexander.deucher@amd.com, airlied@gmail.com, daniel@ffwll.ch
Cc: amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org,
	linux-kernel@vger.kernel.org
Subject: [PATCH] drm/amdgpu/amdgpu: Clean up errors in amdgpu_vf_error.c
Date: Wed, 23 Aug 2023 17:37:13 +0800 (GMT+08:00)	[thread overview]
Message-ID: <5fb7dc6d.628.18a21c158e8.Coremail.chenxuebing@jari.cn> (raw)

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@jari.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

                 reply	other threads:[~2023-08-23 10:49 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5fb7dc6d.628.18a21c158e8.Coremail.chenxuebing@jari.cn \
    --to=chenxuebing@jari.cn \
    --cc=airlied@gmail.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=daniel@ffwll.ch \
    --cc=dri-devel@lists.freedesktop.org \
    --cc=linux-kernel@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®