[PATCH -next] video: fbdev: tridentfb: Fix missing pci_disable_device() in probe and remove

2022-09-22 Thread ruanjinjie
Replace pci_enable_device() with pcim_enable_device(), pci_disable_device() and pci_release_regions() will be called in release automatically. Signed-off-by: ruanjinjie --- drivers/video/fbdev/tridentfb.c | 6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/video

[PATCH -next] drm/nouveau/disp: make gv100_disp_core_mthd_base static

2022-09-25 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: ./drivers/gpu/drm/nouveau/nvkm/engine/disp/gv100.c:591:1: warning: symbol 'gv100_disp_core_mthd_base' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/gpu/drm/no

[PATCH -next] drm/nouveau/disp: fix cast removes address space of expression warnings

2022-09-25 Thread ruanjinjie
27;__iomem' of expression The data type of dmac->_push.mem.object.map.ptr is 'void __iomem *', but converted to 'u32 *' directly and cause above warnings, now recover their data types to fix these warnings. Signed-off-by: ruanjinjie --- drivers/gpu/drm/nouveau/dispnv5

[PATCH -next] drm/tegra: make gather_bo_ops static

2022-09-25 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: ./drivers/gpu/drm/tegra/submit.c:136:28: warning: symbol 'gather_bo_ops' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/gpu/drm/tegra/submit.c | 2 +- 1 file

[PATCH -next] drm/ast: make ast_modeset static

2022-09-25 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/gpu/drm/ast/ast_drv.c:42:5: warning: symbol 'ast_modeset' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/gpu/drm/ast/ast_drv.c | 2 +- 1 file changed, 1

[PATCH -next] drm/vc4: v3d: make render_wait static

2022-09-25 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: ./drivers/gpu/drm/vc4/vc4_irq.c:60:1: warning: symbol 'render_wait' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/gpu/drm/vc4/vc4_irq.c | 2 +- 1 file

[PATCH -next] drm/amd/display: make dcn32_mmhubbub_funcs static

2022-10-18 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mmhubbub.c:214:28: warning: symbol 'dcn32_mmhubbub_funcs' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/g

[PATCH -next] drm/amd/display: make dcn32_mpc_funcs static

2022-10-18 Thread ruanjinjie
The symbol is not used outside of the file, so mark it static. Fixes the following warning: drivers/gpu/drm/amd/amdgpu/../display/dc/dcn32/dcn32_mpc.c:985:24: warning: symbol 'dcn32_mpc_funcs' was not declared. Should it be static? Signed-off-by: ruanjinjie --- drivers/gpu/drm/amd/

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

2022-10-19 Thread ruanjinjie
symbol 'qp_table_420_10bpc_min' was not declared. Should it be static? ./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_tables.h:628:18: warning: symbol 'qp_table_444_10bpc_max' was not declared. Should it be static? ./drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dsc/qp_t

[PATCH] drm/mediatek: mtk_drm_crtc: Add checks for devm_kcalloc

2022-12-05 Thread ruanjinjie
As the devm_kcalloc may return NULL, the return value needs to be checked to avoid NULL poineter dereference. Fixes: 31c5558dae05 ("drm/mediatek: Refactor plane init") Signed-off-by: ruanjinjie --- drivers/gpu/drm/mediatek/mtk_drm_crtc.c | 2 ++ 1 file changed, 2 insertions(+) di