Commit 8697a19e authored by yipechai's avatar yipechai Committed by Alex Deucher

drm/amdgpu: Fix the code style warnings in sdma

Fix the code style warnings in sdma:
1. WARNING: Missing a blank line after declarations.
2. ERROR: that open brace { should be on the previous line.
3. WARNING: unnecessary whitespace before a quoted newline.
4. ERROR: space required after that ',' (ctx:VxV).
Signed-off-by: default avataryipechai <YiPeng.Chai@amd.com>
Reviewed-by: default avatarTao Zhou <tao.zhou1@amd.com>
Acked-by: default avatarChristian König <christian.koenig@amd.com>
Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
parent d622c094
...@@ -2766,10 +2766,10 @@ static int sdma_v4_0_query_ras_error_count_by_instance(struct amdgpu_device *ade ...@@ -2766,10 +2766,10 @@ static int sdma_v4_0_query_ras_error_count_by_instance(struct amdgpu_device *ade
static void sdma_v4_0_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status) static void sdma_v4_0_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status)
{ {
int i = 0; int i = 0;
for (i = 0; i < adev->sdma.num_instances; i++) { for (i = 0; i < adev->sdma.num_instances; i++) {
if (sdma_v4_0_query_ras_error_count_by_instance(adev, i, ras_error_status)) if (sdma_v4_0_query_ras_error_count_by_instance(adev, i, ras_error_status)) {
{ dev_err(adev->dev, "Query ras error count failed in SDMA%d\n", i);
dev_err(adev->dev, "Query ras error count failed in SDMA%d \n", i);
return; return;
} }
} }
...@@ -2814,7 +2814,7 @@ static void sdma_v4_0_set_ras_funcs(struct amdgpu_device *adev) ...@@ -2814,7 +2814,7 @@ static void sdma_v4_0_set_ras_funcs(struct amdgpu_device *adev)
if (adev->sdma.ras) { if (adev->sdma.ras) {
amdgpu_ras_register_ras_block(adev, &adev->sdma.ras->ras_block); amdgpu_ras_register_ras_block(adev, &adev->sdma.ras->ras_block);
strcpy(adev->sdma.ras->ras_block.name,"sdma"); strcpy(adev->sdma.ras->ras_block.name, "sdma");
adev->sdma.ras->ras_block.block = AMDGPU_RAS_BLOCK__SDMA; adev->sdma.ras->ras_block.block = AMDGPU_RAS_BLOCK__SDMA;
/* If don't define special ras_late_init function, use default ras_late_init */ /* If don't define special ras_late_init function, use default ras_late_init */
......
...@@ -248,10 +248,10 @@ static void sdma_v4_4_reset_ras_error_count(struct amdgpu_device *adev) ...@@ -248,10 +248,10 @@ static void sdma_v4_4_reset_ras_error_count(struct amdgpu_device *adev)
static void sdma_v4_4_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status) static void sdma_v4_4_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status)
{ {
int i = 0; int i = 0;
for (i = 0; i < adev->sdma.num_instances; i++) { for (i = 0; i < adev->sdma.num_instances; i++) {
if (sdma_v4_4_query_ras_error_count_by_instance(adev, i, ras_error_status)) if (sdma_v4_4_query_ras_error_count_by_instance(adev, i, ras_error_status)) {
{ dev_err(adev->dev, "Query ras error count failed in SDMA%d\n", i);
dev_err(adev->dev, "Query ras error count failed in SDMA%d \n", i);
return; return;
} }
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment