Re: [PATCH] drm/bridge: analogix_dp: make analogix_dp_start_aux_transaction() static

2020-09-29 Thread Jason Yan
ping... 在 2020/9/12 11:38, Jason Yan 写道: This eliminates the following sparse warning: drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:527:5: warning: symbol 'analogix_dp_start_aux_transaction' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan

Re: [PATCH] drm: bridge: adv7511: make adv7511_hdmi_hw_params() static

2020-09-29 Thread Jason Yan
ping... 在 2020/9/12 11:38, Jason Yan 写道: This eliminates the following sparse warning: drivers/gpu/drm/bridge/adv7511/adv7511_audio.c:58:5: warning: symbol 'adv7511_hdmi_hw_params' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm

Re: [PATCH] drm/amd/display: add debugfs entry for trigger_hotplug

2020-09-29 Thread Jason Yan
ping... 在 2020/9/12 10:22, Jason Yan 写道: The 'trigger_hotplug' entry in debugfs is defined but not wired up. This causes a gcc warning build with W=1. drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm_debugfs.c:2045:37: warning: ‘dp_trigger_hotplug_debugfs_fops’ defined but not used

[PATCH] drm/amd/display: make get_color_space_type() static

2020-09-28 Thread Jason Yan
This addresses the following sparse warning: drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_hw_sequencer.c:180:26: warning: symbol 'get_color_space_type' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/core

[PATCH] drm/amd/display: make two symbols static

2020-09-28 Thread Jason Yan
: symbol 'dce110_set_cursor_attribute' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dce110/dce110_hw_sequencer.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce110

[PATCH v3] drm/panel: samsung: make vint_table static const

2020-09-16 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c:217:15: warning: symbol 'vint_table' was not declared. Should it be static? While at it, make the table const as it is never modified. Reported-by: Hulk Robot Signed-off-by: Jason Yan Reviewed

[PATCH v2] drm/panel: samsung: make vint_table static

2020-09-15 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c:217:15: warning: symbol 'vint_table' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 2 +- 1 file changed, 1

Re: [PATCH] drm/panel: samsung: make vint_table static

2020-09-15 Thread Jason Yan
在 2020/9/15 10:04, Laurent Pinchart 写道: Hi Jason, Thank you for the patch. On Sat, Sep 12, 2020 at 11:38:17AM +0800, Jason Yan wrote: This eliminates the following sparse warning: drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c:217:15: warning: symbol 'vint_table' was not declared. Should

[PATCH] drm/bridge: analogix_dp: make analogix_dp_start_aux_transaction() static

2020-09-14 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/bridge/analogix/analogix_dp_reg.c:527:5: warning: symbol 'analogix_dp_start_aux_transaction' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/bridge/analogix

[PATCH] drm/panel: samsung: make vint_table static

2020-09-14 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c:217:15: warning: symbol 'vint_table' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/panel/panel-samsung-s6e3ha2.c | 2 +- 1 file changed, 1

[PATCH] drm/panel: st7703: Make jh057n00900_panel_desc static

2020-09-14 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/panel/panel-sitronix-st7703.c:156:26: warning: symbol 'jh057n00900_panel_desc' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/panel/panel-sitronix-st7703.c | 2 +- 1 file

[PATCH] drm/amd/display: add debugfs entry for trigger_hotplug

2020-09-14 Thread Jason Yan
const struct file_operations dp_trigger_hotplug_debugfs_fops = { | ^~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm_debugfs.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/amd

[PATCH] drm: bridge: adv7511: make adv7511_hdmi_hw_params() static

2020-09-14 Thread Jason Yan
This eliminates the following sparse warning: drivers/gpu/drm/bridge/adv7511/adv7511_audio.c:58:5: warning: symbol 'adv7511_hdmi_hw_params' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/bridge/adv7511/adv7511_audio.c | 6 +++--- 1

[PATCH] video: fbdev: sis: remove unneeded semicolon

2020-09-11 Thread Jason Yan
semicolon drivers/video/fbdev/sis/sis_accel.h:274:75-76: Unneeded semicolon drivers/video/fbdev/sis/sis_accel.h:275:73-74: Unneeded semicolon drivers/video/fbdev/sis/sis_accel.h:276:75-76: Unneeded semicolon Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/sis

[PATCH] drm: xlnx: remove defined but not used 'scaling_factors_666'

2020-09-11 Thread Jason Yan
d-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/xlnx/zynqmp_disp.c | 6 -- 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/xlnx/zynqmp_disp.c b/drivers/gpu/drm/xlnx/zynqmp_disp.c index a455cfc1bee5..98bd48f13fd1 100644 --- a/drivers/gpu/drm/xlnx/zynqmp_disp.c +++ b/d

[PATCH] video: fbdev: fsl-diu-fb: remove unneeded variable 'res'

2020-09-11 Thread Jason Yan
Eliminate the following coccicheck warning: drivers/video/fbdev/fsl-diu-fb.c:1428:5-8: Unneeded variable: "res". Return "0" on line 1450 Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/fsl-diu-fb.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[PATCH] drm/i810: make i810_flush_queue() return void

2020-09-11 Thread Jason Yan
This function always return '0' and no callers use the return value. So make it a void function. This eliminates the following coccicheck warning: drivers/gpu/drm/i810/i810_dma.c:860:8-11: Unneeded variable: "ret". Return "0" on line 885 Reported-by: Hulk Robot Sign

[PATCH] video: fbdev: remove set but not used 'ulCoreClock'

2020-08-28 Thread Jason Yan
247 | u32 ulCoreClock; | ^~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/kyro/STG4000InitDevice.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/video/fbdev/kyro/STG4000InitDevice.c b/drivers/video/fbdev/kyro/STG4000In

[PATCH] video: fbdev: remove set but not used 'ulBestVCO'

2020-08-28 Thread Jason Yan
ulBestClk = 0, ulBestScore = 0; | ^ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/kyro/STG4000InitDevice.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/kyro/STG4000InitDevice.c b/drivers/video/

[PATCH] drm/nouveau/svm: remove set but not used 'ret'

2020-08-28 Thread Jason Yan
d-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/nouveau/nouveau_svm.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_svm.c b/drivers/gpu/drm/nouveau/nouveau_svm.c index 2df1c0460559..7c95ffcbd18f 100644 --- a/drivers/gpu/d

Re: [PATCH] drm/panel: visionox-rm69299: Add module license

2020-05-11 Thread Jason Yan
在 2020/5/9 14:36, Randy Dunlap 写道: On 5/8/20 11:30 PM, Jason Yan wrote: Fix the following build warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/gpu/drm/panel/panel-visionox-rm69299.o see include/linux/module.h for more information Signed-off-by: Jason Yan --- drivers/gpu

[PATCH] drm/panel: visionox-rm69299: Add module license

2020-05-09 Thread Jason Yan
Fix the following build warning: WARNING: modpost: missing MODULE_LICENSE() in drivers/gpu/drm/panel/panel-visionox-rm69299.o see include/linux/module.h for more information Signed-off-by: Jason Yan --- drivers/gpu/drm/panel/panel-visionox-rm69299.c | 1 + 1 file changed, 1 insertion(+) diff

[PATCH] drm/amd/amdgpu: remove defined but not used 'crtc_offsets'

2020-05-09 Thread Jason Yan
Fix the following gcc warning: drivers/gpu/drm/amd/amdgpu/gmc_v6_0.c:65:18: warning: ‘crtc_offsets’ defined but not used [-Wunused-const-variable=] static const u32 crtc_offsets[6] = ^~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd

[PATCH] drm/vmwgfx: Return true in function vmw_fence_obj_signaled()

2020-05-08 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/vmwgfx/vmwgfx_fence.c:518:9-10: WARNING: return of 0/1 in function 'vmw_fence_obj_signaled' with return type bool Signed-off-by: Jason Yan --- drivers/gpu/drm/vmwgfx/vmwgfx_fence.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] drm/amd/display: remove variable "result" in dcn20_patch_unknown_plane_state()

2020-05-08 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c:3216:16-22: Unneeded variable: "result". Return "DC_OK" on line 3229 Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 4 +--- 1 file change

[PATCH] video: fbdev: pxa168fb: make pxa168fb_init_mode() return void

2020-05-06 Thread Jason Yan
No other functions use the return value of pxa168fb_init_mode() and the return value is always 0 now. Make it return void. This fixes the following coccicheck warning: drivers/video/fbdev/pxa168fb.c:565:5-8: Unneeded variable: "ret". Return "0" on line 597 Signed-off-by: Jas

[PATCH net-next] net: bnxt: Remove Comparison to bool in bnxt_ethtool.c

2020-05-06 Thread Jason Yan
to bool Signed-off-by: Jason Yan --- drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c b/drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c index 34046a6286e8..75f60aea8dec

[PATCH] dma-buf: heaps: Remove Unneeded variable "ret" in dma_heap_dma_buf_begin_cpu_access()

2020-05-06 Thread Jason Yan
Fix the following coccicheck warning: drivers/dma-buf/heaps/heap-helpers.c:203:5-8: Unneeded variable: "ret". Return "0" on line 216 Signed-off-by: Jason Yan --- drivers/dma-buf/heaps/heap-helpers.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/d

[PATCH] drm/msm/dpu: make _dpu_core_perf_crtc_update_bus() void

2020-05-05 Thread Jason Yan
This function does not need to return an error so make it return void. This fixes the following coccicheck warning: drivers/gpu/drm/msm/disp/dpu1/dpu_core_perf.c:178:5-8: Unneeded variable: "ret". Return "0" on line 193 Signed-off-by: Jason Yan --- drivers/gpu/drm/msm/disp/

[PATCH] drm/amd/display: remove unused variable 'ret' in dm_suspend()

2020-05-05 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:1574:5-8: Unneeded variable: "ret". Return "0" on line 1586 Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 +-- 1 file changed, 1 insertion(+), 2 dele

[PATCH] drm/vc4: make vc4_queue_seqno_cb() return void

2020-05-05 Thread Jason Yan
No one uses the return value of this function, so make it return void. This fixes the following coccicheck warning: drivers/gpu/drm/vc4/vc4_gem.c:1029:5-8: Unneeded variable: "ret". Return "0" on line 1044 Signed-off-by: Jason Yan --- drivers/gpu/drm/vc4/vc4_drv.h | 6 +++

[PATCH] drm/zte: remove unneeded semicolon

2020-05-05 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/zte/zx_vga.c:158:2-3: Unneeded semicolon drivers/gpu/drm/zte/zx_vga.c:171:2-3: Unneeded semicolon drivers/gpu/drm/zte/zx_vga.c:179:2-3: Unneeded semicolon Signed-off-by: Jason Yan --- drivers/gpu/drm/zte/zx_vga.c | 6 +++--- 1 file changed

[PATCH] drm/nouveau/mmu: remove unneeded semicolon

2020-05-05 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.h:307:2-3: Unneeded semicolon drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c:583:2-3: Unneeded semicolon Signed-off-by: Jason Yan --- drivers/gpu/drm/nouveau/nvkm/subdev/mmu/vmm.c | 2 +- drivers/gpu/drm/nouveau

[PATCH] video: fbdev: valkyriefb.c: fix warning comparing pointer to 0

2020-04-30 Thread Jason Yan
Fix the following coccicheck warning: drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to 0, suggest !E drivers/video/fbdev/valkyriefb.c:334:12-13: WARNING comparing pointer to 0 drivers/video/fbdev/valkyriefb.c:348:10-11: WARNING comparing pointer to 0 Signed-off-by: Jason

[PATCH] drm/ast: remove duplicate assignment of ast_crtc_funcs member

2020-04-30 Thread Jason Yan
is which we use now in fact, we can remove the first one. This fixes the following coccicheck warning: drivers/gpu/drm/ast/ast_mode.c:932:50-51: set_config: first occurrence line 934, second occurrence line 937 Signed-off-by: Jason Yan --- drivers/gpu/drm/ast/ast_mode.c | 1 - 1 file changed, 1

[PATCH] drm/amdgpu/smu10: remove duplicate assignment of smu10_hwmgr_funcs members

2020-04-28 Thread Jason Yan
: drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c:1357:52-53: asic_setup: first occurrence line 1360, second occurrence line 1388 Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/powerplay/hwmgr/smu10_hwmgr.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr

[PATCH] drm/amd/display: remove duplicate assignment of dcn21_funcs members

2020-04-28 Thread Jason Yan
/display/dc/dcn21/dcn21_init.c:31:51-52: set_cursor_sdr_white_level: first occurrence line 72, second occurrence line 90 Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn21/dcn21_init.c | 5 - 1 file changed, 5 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn21

[PATCH] drm/amd/display: remove conversion to bool in dc_link_ddc.c

2020-04-27 Thread Jason Yan
The '>' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/dc/core/dc_link_ddc.c:602:28-33: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/c

[PATCH] drm/amdgpu: remove conversion to bool in amdgpu_device.c

2020-04-27 Thread Jason Yan
The '>' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:3004:68-73: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c

[PATCH] drm/amd/display: remove conversion to bool in dcn20_mpc.c

2020-04-27 Thread Jason Yan
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/dc/dcn20/dcn20_mpc.c:455:70-75: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn20

[PATCH] drm/msm/dpu: remove set but not used 'topology'

2020-04-26 Thread Jason Yan
Fix the following gcc warning: drivers/gpu/drm/msm/disp/dpu1/dpu_encoder.c:958:30: warning: variable ‘topology’ set but not used [-Wunused-but-set-variable] struct msm_display_topology topology; ^~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan

[PATCH] drm/amd/display: remove conversion to bool amdgpu_dm.c

2020-04-26 Thread Jason Yan
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c:7230:16-21: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/amdgpu_dm

[PATCH] drm/amd/powerplay: remove conversion to bool in navi10_ppt.c

2020-04-26 Thread Jason Yan
The '==' expression itself is bool, no need to convert it to bool again. This fixes the following coccicheck warning: drivers/gpu/drm/amd/powerplay/navi10_ppt.c:698:47-52: WARNING: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/powerplay/navi10_ppt.c | 2

[PATCH] video: udlfb: use true,false for bool variables

2020-04-23 Thread Jason Yan
-by: Jason Yan --- drivers/video/fbdev/udlfb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/video/fbdev/udlfb.c b/drivers/video/fbdev/udlfb.c index 07905d385949..5b014b479f83 100644 --- a/drivers/video/fbdev/udlfb.c +++ b/drivers/video/fbdev/udlfb.c @@ -64,9

[PATCH] fbdev: aty: use true, false for bool variables in atyfb_base.c

2020-04-23 Thread Jason Yan
Fix the following coccicheck warning: drivers/video/fbdev/aty/atyfb_base.c:3822:3-10: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/aty/atyfb_base.c:3824:3-9: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/aty/atyfb_base.c | 4

[PATCH] video: uvesafb: use true,false for bool variables

2020-04-23 Thread Jason Yan
drivers/video/fbdev/uvesafb.c:1835:3-9: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/uvesafb.c:1837:3-9: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/uvesafb.c:1839:3-8: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev

[PATCH] omapfb/dss: fix comparison to bool warning

2020-04-23 Thread Jason Yan
Fix the following coccicheck warning: drivers/video/fbdev/omap2/omapfb/dss/hdmi4.c:461:15-32: WARNING: Comparison to bool drivers/video/fbdev/omap2/omapfb/dss/dispc.c:891:5-35: WARNING: Comparison of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/omap2/omapfb/dss/dispc.c

[PATCH] video: fbdev: i810: use true,false for bool variables

2020-04-23 Thread Jason Yan
to bool variable drivers/video/fbdev/i810/i810_main.c:1975:3-7: WARNING: Assignment of 0/1 to bool variable drivers/video/fbdev/i810/i810_main.c:2001:3-9: WARNING: Assignment of 0/1 to bool variable Signed-off-by: Jason Yan --- drivers/video/fbdev/i810/i810_main.c | 10 +- 1 file changed, 5

[PATCH] drm/amd/display: remove unneeded conversion to bool

2020-04-20 Thread Jason Yan
: conversion to bool not needed here Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_dpp_cm.c

[PATCH] video: fbdev: aty128fb: remove unused 'sdr_64'

2020-04-18 Thread Jason Yan
Fix the following gcc warning: drivers/video/fbdev/aty/aty128fb.c:337:36: warning: ‘sdr_64’ defined but not used [-Wunused-const-variable=] static const struct aty128_meminfo sdr_64 = { ^~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers

[PATCH] drm/v3d: remove unused 'v3d_v3d_pm_ops '

2020-04-18 Thread Jason Yan
Fix the following gcc warning: drivers/gpu/drm/v3d/v3d_drv.c:73:32: warning: ‘v3d_v3d_pm_ops’ defined but not used [-Wunused-const-variable=] static const struct dev_pm_ops v3d_v3d_pm_ops = { ^~ Reported-by: Hulk Robot Signed-off-by: Jason Yan

[PATCH] drm/amd/powerplay: remove defined but not used variables

2020-04-18 Thread Jason Yan
Robot Signed-off-by: Jason Yan --- .../amd/powerplay/hwmgr/vega10_powertune.c| 23 --- 1 file changed, 23 deletions(-) diff --git a/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c b/drivers/gpu/drm/amd/powerplay/hwmgr/vega10_powertune.c index ca9b23b5abc9..9757d47dd6b8

[PATCH] backlight: qcom-wled: remove 'wled4_string_cfg' and 'wled3_string_cfg'

2020-04-18 Thread Jason Yan
:34: warning: ‘wled3_string_cfg’ defined but not used [-Wunused-const-variable=] static const struct wled_var_cfg wled3_string_cfg = { ^~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/backlight/qcom-wled.c | 8 1 file

[PATCH] backlight: lms501kf03: remove unused 'seq_sleep_in' and 'seq_up_dn'

2020-04-18 Thread Jason Yan
: ‘seq_up_dn’ defined but not used [-Wunused-const-variable=] static const unsigned char seq_up_dn[] = { ^ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/backlight/lms501kf03.c | 8 1 file changed, 8 deletions(-) diff --git a/drivers/video

[PATCH] drm/radeon: remove defined but not used 'dte_data_tahiti_le'

2020-04-14 Thread Jason Yan
Fix the following gcc warning: drivers/gpu/drm/radeon/si_dpm.c:255:33: warning: ‘dte_data_tahiti_le’ defined but not used [-Wunused-const-variable=] static const struct si_dte_data dte_data_tahiti_le = Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/radeon/si_dpm.c | 18

[PATCH] drm/amdgpu: remove dead code in si_dpm.c

2020-04-14 Thread Jason Yan
This code is dead, let's remove it. Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/amd/amdgpu/si_dpm.c | 20 1 file changed, 20 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/si_dpm.c b/drivers/gpu/drm/amd/amdgpu/si_dpm.c index 0860e85a2d35

[PATCH] drm/i915/gvt: Use ARRAY_SIZE instead of hardcoded size

2020-04-14 Thread Jason Yan
Fix the following coccicheck warning: drivers/gpu/drm/i915/gvt/vgpu.c:127:30-31: WARNING: Use ARRAY_SIZE Signed-off-by: Jason Yan --- drivers/gpu/drm/i915/gvt/vgpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gvt/vgpu.c b/drivers/gpu/drm/i915/gvt

[PATCH] drm/radeon: remove defined but not used variables in ci_dpm.c

2020-04-14 Thread Jason Yan
:36: warning: ‘defaults_bonaire_pro’ defined but not used [-Wunused-const-variable=] static const struct ci_pt_defaults defaults_bonaire_pro = ^~~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/gpu/drm/radeon/ci_dpm.c | 14

[PATCH] drm/amd/display: code clean up in dce80_hw_sequencer.c

2020-04-13 Thread Jason Yan
[] = { ^~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- .../amd/display/dc/dce80/dce80_hw_sequencer.c | 28 --- 1 file changed, 28 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c b/drivers/gpu/drm/amd/display/dc/dce80/dce80_hw_sequencer.c

[PATCH] video: fbdev: matroxfb: remove dead code and set but not used variable

2020-04-03 Thread Jason Yan
Fix the following gcc warning: drivers/video/fbdev/matrox/g450_pll.c:336:15: warning: variable ‘pixel_vco’ set but not used [-Wunused-but-set-variable] unsigned int pixel_vco; ^ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/matrox/g450_pll.c

[PATCH] video: fbdev: mb862xx: remove set but not used variable 'mdr'

2020-04-03 Thread Jason Yan
Fix the following gcc warning: drivers/video/fbdev/mb862xx/mb862xxfb_accel.c:187:6: warning: variable ‘mdr’ set but not used [-Wunused-but-set-variable] int mdr; ^~~ Reported-by: Hulk Robot Signed-off-by: Jason Yan --- drivers/video/fbdev/mb862xx/mb862xxfb_accel.c | 2 -- 1 file