Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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: yipechai <YiPeng.Chai@amd.com>
Reviewed-by: Tao Zhou <tao.zhou1@amd.com>
Acked-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>

authored by

yipechai and committed by
Alex Deucher
8697a19e d622c094

+7 -7
+4 -4
drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c
··· 2766 2766 static void sdma_v4_0_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status) 2767 2767 { 2768 2768 int i = 0; 2769 + 2769 2770 for (i = 0; i < adev->sdma.num_instances; i++) { 2770 - if (sdma_v4_0_query_ras_error_count_by_instance(adev, i, ras_error_status)) 2771 - { 2772 - dev_err(adev->dev, "Query ras error count failed in SDMA%d \n", i); 2771 + if (sdma_v4_0_query_ras_error_count_by_instance(adev, i, ras_error_status)) { 2772 + dev_err(adev->dev, "Query ras error count failed in SDMA%d\n", i); 2773 2773 return; 2774 2774 } 2775 2775 } ··· 2814 2814 if (adev->sdma.ras) { 2815 2815 amdgpu_ras_register_ras_block(adev, &adev->sdma.ras->ras_block); 2816 2816 2817 - strcpy(adev->sdma.ras->ras_block.name,"sdma"); 2817 + strcpy(adev->sdma.ras->ras_block.name, "sdma"); 2818 2818 adev->sdma.ras->ras_block.block = AMDGPU_RAS_BLOCK__SDMA; 2819 2819 2820 2820 /* If don't define special ras_late_init function, use default ras_late_init */
+3 -3
drivers/gpu/drm/amd/amdgpu/sdma_v4_4.c
··· 248 248 static void sdma_v4_4_query_ras_error_count(struct amdgpu_device *adev, void *ras_error_status) 249 249 { 250 250 int i = 0; 251 + 251 252 for (i = 0; i < adev->sdma.num_instances; i++) { 252 - if (sdma_v4_4_query_ras_error_count_by_instance(adev, i, ras_error_status)) 253 - { 254 - dev_err(adev->dev, "Query ras error count failed in SDMA%d \n", i); 253 + if (sdma_v4_4_query_ras_error_count_by_instance(adev, i, ras_error_status)) { 254 + dev_err(adev->dev, "Query ras error count failed in SDMA%d\n", i); 255 255 return; 256 256 } 257 257 }