AMD-GFX Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: "Christian König" <christian.koenig@amd.com>
To: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>,
	Alex Deucher <alexander.deucher@amd.com>,
	Mario Limonciello <mario.limonciello@amd.com>
Cc: amd-gfx@lists.freedesktop.org
Subject: Re: [PATCH] drm/amd/amdgpu: Fix spaces in array indexing and indentations in amdgpu_kms.c
Date: Wed, 19 Apr 2023 12:45:37 +0200	[thread overview]
Message-ID: <6b919e01-bf37-26de-ffcb-ad82c9dd23fd@amd.com> (raw)
In-Reply-To: <20230419093445.4168345-1-srinivasan.shanmugam@amd.com>

Am 19.04.23 um 11:34 schrieb Srinivasan Shanmugam:
> Fix the following errors reported by checkpatch:
>
> ERROR: space prohibited before open square bracket '['
> +#define TA_FW_NAME(type) [TA_FW_TYPE_PSP_##type] = #type
>
> ERROR: code indent should use tabs where possible
> +        query_fw.fw_type = AMDGPU_INFO_FW_GFX_RLCV;$
>
> Cc: Christian König <christian.koenig@amd.com>
> Cc: Alex Deucher <alexander.deucher@amd.com>
> Cc: Mario Limonciello <mario.limonciello@amd.com>
> Signed-off-by: Srinivasan Shanmugam <srinivasan.shanmugam@amd.com>

Reviewed-by: Christian König <christian.koenig@amd.com>

> ---
>   drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c | 4 ++--
>   1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> index 1a2e342af1c0..a5bae7eb993a 100644
> --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_kms.c
> @@ -1458,7 +1458,7 @@ static int amdgpu_debugfs_firmware_info_show(struct seq_file *m, void *unused)
>   	int ret, i;
>   
>   	static const char *ta_fw_name[TA_FW_TYPE_MAX_INDEX] = {
> -#define TA_FW_NAME(type) [TA_FW_TYPE_PSP_##type] = #type
> +#define TA_FW_NAME(type)[TA_FW_TYPE_PSP_##type] = #type
>   		TA_FW_NAME(XGMI),
>   		TA_FW_NAME(RAS),
>   		TA_FW_NAME(HDCP),
> @@ -1557,7 +1557,7 @@ static int amdgpu_debugfs_firmware_info_show(struct seq_file *m, void *unused)
>   		   fw_info.feature, fw_info.ver);
>   
>   	/* RLCV */
> -        query_fw.fw_type = AMDGPU_INFO_FW_GFX_RLCV;
> +	query_fw.fw_type = AMDGPU_INFO_FW_GFX_RLCV;
>   	ret = amdgpu_firmware_info(&fw_info, &query_fw, adev);
>   	if (ret)
>   		return ret;


      reply	other threads:[~2023-04-19 10:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-04-19  9:34 [PATCH] drm/amd/amdgpu: Fix spaces in array indexing and indentations in amdgpu_kms.c Srinivasan Shanmugam
2023-04-19 10:45 ` Christian König [this message]

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=6b919e01-bf37-26de-ffcb-ad82c9dd23fd@amd.com \
    --to=christian.koenig@amd.com \
    --cc=alexander.deucher@amd.com \
    --cc=amd-gfx@lists.freedesktop.org \
    --cc=mario.limonciello@amd.com \
    --cc=srinivasan.shanmugam@amd.com \
    /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