[PATCH] Fix warning: Using plain integer as NULL pointer in msm_ringbuffer.c

2024-08-10 Thread Dipendra Khadka
sparse reported following warning: ''' drivers/gpu/drm/msm/msm_ringbuffer.c:34:31: warning: Using plain integer as NULL pointer ''' This fix changes integer 0 to NULL. Signed-off-by: Dipendra Khadka --- drivers/gpu/drm/msm/msm_ringbuffer.c | 2 +- 1 file chang

[PATCH] staging: drivers: gpu: drm: mediatek: Fix warning: Using plain integer as NULL pointer in mtk_drm_gem.c

2024-08-10 Thread Dipendra Khadka
sparse reported following warking: ''' drivers/gpu/drm/mediatek/mtk_drm_gem.c:290:27: warning: Using plain integer as NULL pointer ''' This patch changes integer 0 to NULL. Signed-off-by: Dipendra Khadka --- drivers/gpu/drm/mediatek/mtk_drm_gem.c | 2 +- 1 f

[PATCH] Fix warning: Using plain integer as NULL pointer in dml2_pmo_dcn4.c

2024-08-15 Thread Dipendra Khadka
21/src/dml2_pmo/dml2_pmo_dcn4.c:790:57: warning: Using plain integer as NULL pointer drivers/gpu/drm/amd/amdgpu/../display/dc/dml2/dml21/src/dml2_pmo/dml2_pmo_dcn4.c:958:67: warning: Using plain integer as NULL pointer ''' This patch changes zero to NULL. Signed-off-by: Dipendra Khadka --

[PATCH] Fix warning: symbol 'dcn3_14_ip' was not declared. Should it be static? in dcn314_fpu.c

2024-08-15 Thread Dipendra Khadka
Sparse reported following warning: ''' drivers/gpu/drm/amd/amdgpu/../display/dc/dml/dcn314/dcn314_fpu.c:36:30: warning: symbol 'dcn3_14_ip' was not declared. Should it be static? ''' Since the symbol dcn3_14_ip is not exported,it is declared as

[PATCH] Initialize symbol 'entity' in sched_main.c

2024-08-17 Thread Dipendra Khadka
smatch reported following error: ''' staging/drivers/gpu/drm/scheduler/sched_main.c:1063 drm_sched_select_entity() error: uninitialized symbol 'entity'. ''' The symbol entity is initialized. Signed-off-by: Dipendra Khadka --- drivers/gpu/drm/schedule