* [PATCH] drm/amd/amdgpu: Fix spaces in array indexing and indentations in amdgpu_kms.c
@ 2023-04-19 9:34 Srinivasan Shanmugam
2023-04-19 10:45 ` Christian König
0 siblings, 1 reply; 2+ messages in thread
From: Srinivasan Shanmugam @ 2023-04-19 9:34 UTC (permalink / raw)
To: Christian König, Alex Deucher, Mario Limonciello
Cc: Srinivasan Shanmugam, amd-gfx
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>
---
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;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] drm/amd/amdgpu: Fix spaces in array indexing and indentations in amdgpu_kms.c
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
0 siblings, 0 replies; 2+ messages in thread
From: Christian König @ 2023-04-19 10:45 UTC (permalink / raw)
To: Srinivasan Shanmugam, Alex Deucher, Mario Limonciello; +Cc: amd-gfx
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;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-04-19 10:45 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox