[PATCH -next v2] drm/msm: Use list_move_tail instead of list_del/list_add_tail in msm_gem.c

2021-06-09 Thread Baokun Li
Using list_move_tail() instead of list_del() + list_add_tail() in msm_gem.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/msm/msm_gem.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/msm/msm_gem.

[PATCH -next v2] drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf_res.c

2021-06-09 Thread Baokun Li
Using list_move_tail() instead of list_del() + list_add_tail() in vmwgfx_cmdbuf_res.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf_res.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/

[PATCH -next v2] drm/vmwgfx: Use list_move_tail instead of list_del/list_add_tail in vmwgfx_cmdbuf.c

2021-06-09 Thread Baokun Li
Using list_move_tail() instead of list_del() + list_add_tail() in vmwgfx_cmdbuf.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/

[PATCH -next v2] drm/radeon: use list_move instead of list_del/list_add in radeon_vm.c

2021-06-09 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in radeon_vm.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/radeon/radeon_vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/radeon_vm.c

[PATCH -next v2] drm/nouveau/sw: use list_move instead of list_del/list_add in base.c

2021-06-09 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in base.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/nouveau/nvkm/engine/sw/base.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/n

[PATCH -next v2] drm/nouveau/gr: use list_move instead of list_del/list_add in nv40.c

2021-06-09 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in nv40.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/nouveau/nvkm/engine/gr/nv40.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/n

[PATCH -next v2] drm/amdgpu: use list_move instead of list_del/list_add in amdgpu_vm.c

2021-06-08 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in amdgpu_vm.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amd

[PATCH -next v2] drm/ttm: use list_move instead of list_del/list_add in ttm_execbuf_util.c

2021-06-08 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in ttm_execbuf_util.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/ttm/ttm_execbuf_util.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/

[PATCH -next v2] drm/nouveau/mpeg: use list_move instead of list_del/list_add in nv44.c

2021-06-08 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in nv44.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/nouveau/nvkm/engine/mpeg/nv44.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/nouveau/n

[PATCH -next v2] drm/nouveau/fifo: use list_move instead of list_del/list_add in base.c

2021-06-08 Thread Baokun Li
Using list_move() instead of list_del() + list_add() in base.c. Reported-by: Hulk Robot Signed-off-by: Baokun Li --- V1->V2: CC mailist drivers/gpu/drm/nouveau/nvkm/engine/fifo/base.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouv

[PATCH -next] drm/amd/display: fix warning: ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ defined but not used

2021-06-01 Thread Baokun Li
d but not used [-Wunused-function] Thus move the definition of ‘update_dsc_caps’ and ‘apply_dsc_policy_for_stream’ inside define macro to fix it. Signed-off-by: Baokun Li --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 6 ++ 1 file changed, 2 insertions(+), 4 deletions(-) diff

[PATCH -next] drm/nouveau/svm: Remove set but not used variable 'ret'

2021-05-30 Thread Baokun Li
Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/nouveau/nouveau_svm.c: In function 'nouveau_pfns_map': drivers/gpu/drm/nouveau/nouveau_svm.c:814:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] It never used since introduction. Sign

[PATCH -next] video: fbdev: intelfb: Remove set but not used variable 'val'

2021-05-27 Thread Baokun Li
b_i2c.c: In function 'intelfb_gpio_setsda': drivers/video/fbdev/intelfb/intelfb_i2c.c:69:6: warning: variable ‘val’ set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Baokun Li --- drivers/video/fbdev/intelfb/intelfb_i2c.c | 6 ++ 1 fi

[PATCH -next] drm/nouveau: Remove set but not used variable 'dev'

2021-05-25 Thread Baokun Li
au_bo.c: In function 'nouveau_ttm_tt_unpopulate': drivers/gpu/drm/nouveau/nouveau_bo.c:1281:17: warning: variable ‘dev’ set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Baokun Li --- drivers/gpu/drm/nouveau/nouveau_bo.c | 4 1 file changed

[PATCH -next] drm/nouveau: Remove set but not used variable 'width'

2021-05-25 Thread Baokun Li
ntroduction. Signed-off-by: Baokun Li --- drivers/gpu/drm/nouveau/nouveau_display.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/drivers/gpu/drm/nouveau/nouveau_display.c b/drivers/gpu/drm/nouveau/nouveau_display.c index 929de41c281f..2b460835a438 100644 --- a/dri

[PATCH -next] drm/nouveau:disp: Remove set but not used variable 'ret'

2021-05-15 Thread Baokun Li
able] drivers/gpu/drm/nouveau/dispnv50/disp.c: In function 'nv50_mstm_prepare': drivers/gpu/drm/nouveau/dispnv50/disp.c:1413:6: warning: variable ‘ret’ set but not used [-Wunused-but-set-variable] It never used since introduction. Signed-off-by: Baokun Li --- drivers/gpu/drm/nouve