[PATCH] drm/nouveau/flcn/cmdq: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/falcon/cmdq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/cmdq.c

[PATCH] drm/nouveau/pmu: add spaces around '='

2023-07-10 Thread sunran001
This fixes the checkpatch.pl errors: ERROR: spaces required around that '=' (ctx:VxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pmu/gk20a.c

[PATCH] drm/nouveau/clk: remove spaces before ','

2023-07-10 Thread sunran001
Remove spaces to clear checkpatch errors. ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/gt215.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git

[PATCH] drm/nouveau/flcn/qmgr: add missing spaces after ','

2023-07-11 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required before the open brace ',' Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.h

[PATCH] drm/nouveau/clk: remove spaces before ','

2023-07-10 Thread sunran001
Remove spaces to clear checkpatch errors. ERROR: space prohibited before that ',' (ctx:WxW) Signed-off-by: Ran Sun --- .../gpu/drm/nouveau/nvkm/subdev/clk/gf100.c | 20 +-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git

[PATCH] drm/nouveau: add missing spaces after ',' and before '('

2023-07-11 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required after that ',' (ctx:VxV) ERROR: space required before the open parenthesis '(' Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nouveau_drv.h | 28 +-- 1 file changed, 14 insertions(+), 14

[PATCH] drm/nouveau/volt/gk104: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/gk104.c

[PATCH] drm/nouveau/flcn/msgq: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/msgq.c

[PATCH] drm/nouveau: add missing spaces after ','

2023-07-11 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nouveau_svm.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c

[PATCH] drm/nouveau/clk: add missing spaces after ',' and '{'

2023-07-10 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required before the open brace '{' ERROR: space required before the open parenthesis '(' Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[PATCH] drm/nouveau/flcn/qmgr: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/falcon/qmgr.c

[PATCH] drm/nouveau/volt: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c

[PATCH] drm/nouveau/clk: add missing spaces after ','

2023-07-10 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/seq.h | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git

[PATCH] drm/nouveau/devinit: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/devinit/nv05.c

[PATCH] drm/nouveau: ERROR: (foo*) should be (foo *)

2023-07-11 Thread sunran001
Fix two occurrences of the checkpatch.pl error: ERROR: (foo*) should be (foo *) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nouveau_fence.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_fence.c

[PATCH] drm/nouveau/clk: Move assignment outside if condition

2023-07-10 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/clk/mcp77.c

[PATCH] drm/nouveau: add missing spaces after ','

2023-07-13 Thread sunran001
Add missing spaces to clear checkpatch errors. ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/include/nvhw/drf.h | 80 +++--- 1 file changed, 40 insertions(+), 40 deletions(-) diff --git

[PATCH] drm/amdgpu/discovery: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/discovery.h | 33 + 1 file changed, 11 insertions(+), 22 deletions(-) diff --git a/drivers/gpu/drm/amd/include/discovery.h

[PATCH] drm/amd/amd_shared.h: remove spaces after '*'

2023-07-14 Thread sunran001
Fix four occurrences of the checkpatch.pl error: ERROR: trailing whitespace Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/amd_shared.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/include/amd_shared.h

[PATCH] drm/amd: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h

[PATCH] drm/amd: add missing spaces after ',' and remove spaces before ','

2023-07-14 Thread sunran001
Add missing spaces and remove spaces to clear checkpatch errors. ERROR: space prohibited before that ',' (ctx:WxV) ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/atom-bits.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd: open brace '{' following struct go on the same line

2023-07-14 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/atomfirmwareid.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/atomfirmwareid.h

[PATCH] drm/msm/dsi: add missing put_device()

2023-07-18 Thread sunran001
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Detected by coccinelle with the following ERROR: ./drivers/gpu/drm/msm/dsi/dsi.c:50:1-7: ERROR: missing put_device; call of_find_device_by_node on line 32, but without a

[PATCH] drm/msm/dsi: add missing put_device()

2023-07-18 Thread sunran001
The of_find_device_by_node() takes a reference to the underlying device structure, we should release that reference. Detected by coccinelle with the following ERROR: ./drivers/gpu/drm/msm/dsi/dsi.c:50:1-7: ERROR: missing put_device; call of_find_device_by_node on line 32, but without a

[PATCH] drm/nouveau: Move assignment outside if condition

2023-07-11 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nouveau_usif.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_usif.c

[PATCH] drm/nouveau/iccsense: do not use assignment in if condition

2023-07-10 Thread sunran001
checkpatch.pl does not like assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c

[PATCH] drm/radeon: ERROR: that open brace { should be on the previous line

2023-07-10 Thread sunran001
Fix eleven occurrences of the checkpatch.pl error: ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/rv770.c | 22 +++--- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/drivers/gpu/drm/radeon/rv770.c

[PATCH] drm/radeon: ERROR: "(foo*)" should be "(foo *)"

2023-07-10 Thread sunran001
Fix five occurrences of the checkpatch.pl error: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_kms.c | 10 +- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_kms.c

[PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busgf119.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/pad.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 =>

[PATCH] drm/nouveau/pci: ERROR: "foo * bar" should be "foo *bar"

2023-07-10 Thread sunran001
Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/pci/gk104.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nvkm/subdev/pci/gk104.c b/drivers/gpu/drm/nouveau/nvkm/subdev/pci/gk104.c index 6be87ecffc89..bc51987c5f5f 100644 ---

Fwd: [PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 =>

[PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 =>

[PATCH] drm/nouveau/nvkm: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/busnv04.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100755 =>

[PATCH] drm/nouveau/iccsense:

2023-07-10 Thread sunran001
Fixed error: 'do not use assignment in if condition' This patch fixes error: 'do not use assignment in if condition' in drm/nouveau/iccsense Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/iccsense/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/nouveau/i2c: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/aux.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/nouveau/nvkm: do not use assignment in if condition

2023-07-10 Thread sunran001
Assignments in if condition are less readable and error-prone. Fixes also checkpatch warning: ERROR: do not use assignment in if condition Signed-off-by:Ran Sun --- drivers/gpu/drm/nouveau/nvkm/subdev/i2c/base.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git

[PATCH] drm/radeon: ERROR: "foo * bar" should be "foo *bar"

2023-07-10 Thread sunran001
Fix nine occurrences of the checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/atom.c | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c

[PATCH] drm/radeon: ERROR: "(foo*)" should be "(foo *)"

2023-07-10 Thread sunran001
Fix four occurrences of the checkpatch.pl error: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_test.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_test.c

[PATCH] drm/radeon: ERROR: "(foo*)" should be "(foo *)"

2023-07-10 Thread sunran001
Fix four occurrences of the checkpatch.pl error: ERROR: "(foo*)" should be "(foo *)" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_atombios.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_atombios.c

[PATCH] drm/nouveau: remove spaces after '*'

2023-07-12 Thread sunran001
Fix four occurrences of the checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/nouveau/dispnv04/crtc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/dispnv04/crtc.c

[PATCH] drm/i915: fix application of sizeof to pointer

2023-07-20 Thread sunran001
The coccinelle check report: ./drivers/scsi/csiostor/csio_mb.c:1554:46-52: ERROR: application of sizeof to pointer Signed-off-by: Ran Sun --- drivers/gpu/drm/i915/i915_syncmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/i915_syncmap.c

[PATCH] vt: remove spaces after '*'

2023-07-19 Thread sunran001
remove redundant spaces to clear checkpatch errors. ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- include/linux/kbd_kern.h | 20 ++-- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/include/linux/kbd_kern.h b/include/linux/kbd_kern.h index

[PATCH] drm/amd/pm: open brace '{' following struct go on the same line

2023-07-20 Thread sunran001
ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- .../gpu/drm/amd/pm/inc/smu_v13_0_0_pptable.h | 21 +++ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/inc/smu_v13_0_0_pptable.h

[PATCH] drm/amdgpu: open brace '{' following struct go on the same line

2023-07-20 Thread sunran001
ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_pm.h index

[PATCH] drm/amd/pm: open brace '{' following struct go on the same line

2023-07-20 Thread sunran001
ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h b/drivers/gpu/drm/amd/pm/inc/amdgpu_dpm.h index

[PATCH] drm/amd: open brace '{' following struct go on the same line

2023-07-20 Thread sunran001
Fix the checkpatch error as open brace '{' following struct should go on the same line. Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/include/yellow_carp_offset.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/include/yellow_carp_offset.h

[PATCH] drm/radeon: ERROR: "foo * bar" should be "foo *bar"

2023-07-21 Thread sunran001
Fix two occurrences of the checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index

[PATCH] drm/radeon: ERROR: "foo * bar" should be "foo *bar"

2023-07-21 Thread sunran001
Fix two occurrences of the checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Jianghui Xu --- drivers/gpu/drm/radeon/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index

[PATCH] drm/amd/pm: Clean up errors in arcturus_ppt.c

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: "foo* bar" should be "foo *bar" ERROR: spaces required around that '=' (ctx:VxW) ERROR: space prohibited before that close parenthesis ')' Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu_cmn.c | 6 +++--- 1 file changed, 3

[PATCH] drm/amd/pm: open brace '{' following function definitions go on the next line

2023-07-24 Thread sunran001
ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c

[PATCH] drm/amd/pm: Clean up errors in smu_v11_0_7_pptable.h

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: trailing whitespace ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- .../amd/pm/swsmu/inc/smu_v11_0_7_pptable.h| 41 +-- 1 file changed, 19 insertions(+), 22 deletions(-) diff

[PATCH] drm/radeon: Move assignment outside if condition

2023-07-23 Thread sunran001
Fixes the following checkpatch errors: ERROR: do not use assignment in if condition Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_legacy_tv.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_legacy_tv.c

[PATCH] drm/amd/pm: Clean up errors in smu_v13_0_1_pmfw.h

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: trailing whitespace Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_1_pmfw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] drm/radeon: add missing spaces before ';'

2023-07-23 Thread sunran001
ERROR: space required after that ';' (ctx:BxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_vce.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vce.c b/drivers/gpu/drm/radeon/radeon_vce.c index ca4a36464340..d1871af967d4

[PATCH] drm/radeon: that open brace { should be on the previous line

2023-07-23 Thread sunran001
ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/clearstate_si.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/clearstate_si.h b/drivers/gpu/drm/radeon/clearstate_si.h index

[PATCH] drm/amd/pm: Clean up errors in arcturus_ppt.c

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: spaces required around that '=' (ctx:VxW) ERROR: spaces required around that '>=' (ctx:WxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu11/arcturus_ppt.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff

[PATCH] drm/amd/pm: open brace '{' following struct go on the same line

2023-07-24 Thread sunran001
ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- .../amd/pm/swsmu/inc/smu_v13_0_7_pptable.h| 21 +++ 1 file changed, 7 insertions(+), 14 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_v13_0_7_pptable.h

[PATCH] drm/radeon/si_dpm: open brace '{' following struct go on the same line

2023-07-23 Thread sunran001
ERROR: open brace '{' following struct go on the same line Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/sislands_smc.h | 51 +-- 1 file changed, 17 insertions(+), 34 deletions(-) diff --git a/drivers/gpu/drm/radeon/sislands_smc.h

[PATCH] drm/radeon: add missing spaces after ',' and else should follow close brace '}'

2023-07-23 Thread sunran001
ERROR: else should follow close brace '}' ERROR: space required after that ',' (ctx:VxV) Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/radeon_connectors.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_connectors.c

[PATCH] drm/amd/pm: Clean up errors in smu11_driver_if_sienna_cichlid.h

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: trailing whitespace Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/inc/pmfw_if/smu_v13_0_1_pmfw.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git

[PATCH] drm/amd/pm: that open brace { should be on the previous line

2023-07-24 Thread sunran001
ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/inc/smu_11_0_cdr_table.h

[PATCH] drm/radeon: that open brace { should be on the previous line

2023-07-23 Thread sunran001
ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/rv770_smc.c | 36 ++ 1 file changed, 12 insertions(+), 24 deletions(-) diff --git a/drivers/gpu/drm/radeon/rv770_smc.c b/drivers/gpu/drm/radeon/rv770_smc.c

[PATCH] drm: "foo * bar" should be "foo *bar"

2023-07-24 Thread sunran001
ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/drm_legacy.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/drm_legacy.h b/drivers/gpu/drm/drm_legacy.h index 70c9dba114a6..f098a48cbdf4 100644 ---

[PATCH] drm/amd/pm: Clean up errors in smu11_driver_if_sienna_cichlid.h

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: trailing whitespace ERROR: space prohibited before open square bracket '[' ERROR: space prohibited before that close square bracket ']' Signed-off-by: Ran Sun --- .../pmfw_if/smu11_driver_if_sienna_cichlid.h | 386 +- 1

[PATCH] drm/amd/pm: add missing spaces before '('

2023-07-24 Thread sunran001
ERROR: space required before the open parenthesis '(' Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/renoir_ppt.c

[PATCH] drm/amd/pm: Clean up errors in navi10_ppt.c

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: open brace '{' following function definitions go on the next line ERROR: space required before the open parenthesis '(' ERROR: space required after that ',' (ctx:VxV) ERROR: spaces required around that '=' (ctx:VxW) Signed-off-by: Ran Sun

[PATCH] drm/radeon: that open brace { should be on the previous line

2023-07-23 Thread sunran001
ERROR: that open brace { should be on the previous line Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/ni_dpm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/ni_dpm.c b/drivers/gpu/drm/radeon/ni_dpm.c index a101ba00ea30..1cf4de4cda23 100644 ---

[PATCH] drm/amd/pm: Clean up errors in sienna_cichlid_ppt.c

2023-07-24 Thread sunran001
Fix the following errors reported by checkpatch: ERROR: space required after that ',' (ctx:VxV) ERROR: space required before the open parenthesis '(' ERROR: spaces required around that '=' (ctx:VxW) Signed-off-by: Ran Sun --- .../drm/amd/pm/swsmu/smu11/sienna_cichlid_ppt.c | 16

[PATCH] drm/amd/pm:open brace '{' following function definitions go on the next line

2023-07-24 Thread sunran001
ERROR: open brace '{' following function definitions go on the next line Signed-off-by: Ran Sun --- drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/pm/swsmu/smu12/smu_v12_0.c

[PATCH] drm/radeon: ERROR: "foo * bar" should be "foo *bar"

2023-07-21 Thread sunran001
Fix nine occurrences of the checkpatch.pl error: ERROR: "foo * bar" should be "foo *bar" Signed-off-by: Ran Sun --- drivers/gpu/drm/radeon/atom.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/atom.c b/drivers/gpu/drm/radeon/atom.c index