[PATCH] drm/msm/dpu: Fix error return code in dpu_mdss_init()

2020-11-17 Thread Chen Zhou
Fix to return a negative error code from the error handling case instead of 0 in function dpu_mdss_init(), as done elsewhere in this function. Fixes: 070e64dc1bbc ("drm/msm/dpu: Convert to a chained irq chip") Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/msm

[PATCH -next] drm/amd/display: Remove duplicate include

2020-09-09 Thread Chen Zhou
Remove duplicate header which is included twice. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c b/drivers/gpu/drm/amd/display/dc/dcn30/dcn30_hwseq.c index

[PATCH -next] drm/amd/display: remove duplicate headers

2020-05-08 Thread Chen Zhou
Remove duplicate headers which are included twice. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index

[PATCH -next] drm/i915/gt: fix spelling mistake "undeflow" -> "underflow"

2020-04-01 Thread Chen Zhou
There is a spelling mistake in comment, fix it. Signed-off-by: Chen Zhou --- drivers/gpu/drm/i915/gt/intel_engine_pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/i915/gt/intel_engine_pm.c b/drivers/gpu/drm/i915/gt/intel_engine_pm.c index b6cf284

[PATCH -next] drm/amdgpu/uvd7: remove unnecessary conversion to bool

2020-03-25 Thread Chen Zhou
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c b/drivers/gpu/drm/amd/amdgpu/uvd_v7_0.c index 0995378..20f10a5 100644

[PATCH -next] drm/amd/powerplay: Use bitwise instead of arithmetic operator for flags

2020-02-21 Thread Chen Zhou
This silences the following coccinelle warning: "WARNING: sum of probable bitmasks, consider |" Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/powerplay/hwmgr/vega10_hwmgr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/power

[PATCH -next] drm/amdgpu: remove unnecessary conversion to bool

2020-02-03 Thread Chen Zhou
Fixes coccicheck warnings: ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2198:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2884:68-73: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd

[PATCH -next 13/14] drm/amdgpu: remove unnecessary conversion to bool in sdma_v4_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c:2180:40-45: WARNING conversion to bool not needed here and many more similar messages. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/sdma_v4_0.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions

[PATCH -next 02/14] drm/amdgpu: remove unnecessary conversion to bool in vega10_ih.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/vega10_ih.c:720:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/vega10_ih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH -next v2] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-22 Thread Chen Zhou
ode. Fixes: 775d2ffb4af6 ("backlight: qcom-wled: Restructure the driver for WLED3") Signed-off-by: Chen Zhou Reviewed-by: Bjorn Andersson --- changes in v2: - fix commit message description. --- drivers/video/backlight/qcom-wled.c | 4 ++-- 1 file changed, 2 insertions(+), 2 delet

[PATCH -next 09/14] drm/amdgpu: remove unnecessary conversion to bool in nv.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/nv.c:953:40-45: WARNING: conversion to bool not needed here and many more similar messages. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/nv.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a

[PATCH -next 14/14] drm/amdgpu: remove unnecessary conversion to bool in gfx_v9_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c:4737:43-48: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/gfx_v9_0.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd

[PATCH -next 08/14] drm/amdgpu: remove unnecessary conversion to bool in soc15.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/soc15.c:1474:40-45: WARNING: conversion to bool not needed here and many more similar messages. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/soc15.c | 28 ++-- 1 file changed, 14 insertions

[PATCH -next 05/14] drm/amdgpu: remove unnecessary conversion to bool in sdma_v5_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:1528:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/sdma_v5_0.c:1530:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu

[PATCH -next 07/14] drm/amdgpu: remove unnecessary conversion to bool in amdgpu_acp.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c:530:51-56: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_acp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH -next 06/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v1_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:77:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/athub_v1_0.c:79:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu

[PATCH -next 12/14] drm/amdgpu: remove unnecessary conversion to bool in athub_v2_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/athub_v2_0.c:80:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/athub_v2_0.c:82:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu

[PATCH -next 00/14] drm/amdgpu: remove unnecessary conversion to bool

2020-01-22 Thread Chen Zhou
This patch series remove unnecessary conversion to bool in dir drivers/gpu/drm/amd/amdgpu/, which is detected by coccicheck. Chen Zhou (14): drm/amdgpu: remove unnecessary conversion to bool in mmhub_v1_0.c drm/amdgpu: remove unnecessary conversion to bool in vega10_ih.c drm/amdgpu: remove

Re: [PATCH -next] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-22 Thread Chen Zhou
Hi Bjorn, On 2020/1/22 8:39, Bjorn Andersson wrote: > On Mon 20 Jan 05:01 PST 2020, Chen Zhou wrote: > >> Fixes coccicheck warning: >> ./drivers/video/backlight/qcom-wled.c:1104:5-15: >> WARNING: Unsigned expression compared with zero: string_len > 0 >> &g

[PATCH -next 10/14] drm/amdgpu: remove unnecessary conversion to bool in mmhub_v9_4.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c:628:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/mmhub_v9_4.c:630:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu

[PATCH -next 11/14] drm/amdgpu: remove unnecessary conversion to bool in amdgpu_device.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/amdgpu_device.c:2883:68-73: WARNING: conversion to bool not needed here and many more similar messages. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/amdgpu_device.c | 8 +++- 1 file changed, 3 insertions(+), 5

[PATCH -next 01/14] drm/amdgpu: remove unnecessary conversion to bool in mmhub_v1_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c:526:40-45: WARNING: conversion to bool not needed here ./drivers/gpu/drm/amd/amdgpu/mmhub_v1_0.c:528:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu

[PATCH -next 04/14] drm/amdgpu: remove unnecessary conversion to bool in gfx_v10_0.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:4259:43-48: WARNING: conversion to bool not needed here and many more similar messages. Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c | 4 ++-- drivers/gpu/drm/amd/amdgpu/mmhub_v2_0.c | 4 ++-- 2

[PATCH -next 03/14] drm/amdgpu: remove unnecessary conversion to bool in navi10_ih.c

2020-01-22 Thread Chen Zhou
Fixes coccicheck warning: ./drivers/gpu/drm/amd/amdgpu/navi10_ih.c:429:40-45: WARNING: conversion to bool not needed here Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/amdgpu/navi10_ih.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/amdgpu

[PATCH -next] backlight: qcom-wled: fix unsigned comparison to zero

2020-01-20 Thread Chen Zhou
xes: 775d2ffb4af6 ("backlight: qcom-wled: Restructure the driver for WLED3") Signed-off-by: Chen Zhou --- drivers/video/backlight/qcom-wled.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/video/backlight/qcom-wled.c b/drivers/video/backlight/qcom-wled.c index d46

[PATCH -next] drm/ttm: remove unnecessary conversion to bool

2020-01-20 Thread Chen Zhou
The conversion to bool is not needed, remove it. Signed-off-by: Chen Zhou --- drivers/gpu/drm/nouveau/nouveau_ttm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_ttm.c b/drivers/gpu/drm/nouveau/nouveau_ttm.c index 7ca0a24..0cbcbe1 100644

[PATCH -next] drm/nouveau: fix build error without CONFIG_IOMMU_API

2020-01-17 Thread Chen Zhou
struct iommu_fwspec has no member named ids u32 sid = spec->ids[0] & 0x; Seletc IOMMU_API under config DRM_NOUVEAU to fix this. Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/nouveau/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/nouveau/Kcon

[PATCH next] drm/i915: fix build error without ACPI

2020-01-14 Thread Chen Zhou
u/drm/i915/display/intel_panel.o: In function `intel_backlight_device_unregister': intel_panel.c:(.text+0x4e96): undefined reference to `backlight_device_unregister' This patch select BACKLIGHT_CLASS_DEVICE directly. Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/

Re: [PATCH next] drm/i915/gtt: add missing include file asm/smp.h

2020-01-09 Thread Chen Zhou
On 2020/1/8 21:44, Jani Nikula wrote: > On Wed, 08 Jan 2020, Chen Zhou wrote: >> Fix build error: >> lib/crypto/chacha.c: In function chacha_permute: >> lib/crypto/chacha.c:65:1: warning: the frame size of 3384 bytes is larger >> than 2048 bytes [-Wframe-larger-than=]

[PATCH next v2] drm/i915/gtt: add missing include file asm/smp.h

2020-01-09 Thread Chen Zhou
(); ^~ wrmsr_on_cpus Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- changes in v2: - correct build error messages. --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/gpu/drm/i915/gt/intel_ggtt.c b/drivers/gpu

[PATCH next] drm/i915/gtt: add missing include file asm/smp.h

2020-01-09 Thread Chen Zhou
Fix build error: lib/crypto/chacha.c: In function chacha_permute: lib/crypto/chacha.c:65:1: warning: the frame size of 3384 bytes is larger than 2048 bytes [-Wframe-larger-than=] } ^ Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/i915/gt/intel_ggtt.c | 1 + 1 file

[PATCH next] drm/gma500: remove set but not used variables 'hist_reg'

2019-12-28 Thread Chen Zhou
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/gma500/psb_irq.c: In function psb_irq_turn_off_dpst: drivers/gpu/drm/gma500/psb_irq.c:473:6: warning: variable hist_reg set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot Signed-off-by:

[PATCH next] drm/amd/display: make some symbols static

2019-12-23 Thread Chen Zhou
amd/amdgpu/../display/dc/dce110/dce110_resource.c:768:6: warning: symbol 'dce110_clock_source_destroy' was not declared. Should it be static? Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 10 +- 1 file changed

[PATCH next] drm: of: fix build error without CONFIG_OF

2019-12-23 Thread Chen Zhou
aiting for unfinished jobs make: *** [drivers] Error 2 Fixes: 6529007522de (drm: of: Add drm_of_lvds_get_dual_link_pixel_order) Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- include/drm/drm_of.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/drm/drm_of.h b/i

[PATCH next] drm/amd/display: make non-global functions static

2019-12-23 Thread Chen Zhou
ng: symbol 'restore_border_left_from_dst' was not declared. Should it be static? Fixes: 89d07b662f5e (drm/amd/display: fix 270 degree rotation for mixed-SLS mode) Reported-by: Hulk Robot Signed-off-by: Chen Zhou --- drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 4 ++-- 1 file changed, 2 insertions(+),