[PATCH 2/2] video: fbdev: uvesafb: convert snprintf to scnprintf

2022-09-18 Thread Jules Irenge
Coccinelle reports a warning WARNING: use scnprintf or sprintf Adding to that, there has also been some slow migration from snprintf to scnprintf This article explains the rationale for this change https: //lwn.net/Articles/69419/ Signed-off-by: Jules Irenge --- drivers/video/fbdev/uvesafb.c

[PATCH 2/5] video: Add missing annotation for cyber2000fb_enable_ddc() and cyber2000fb_disable_ddc()

2020-04-04 Thread Jules Irenge
annotation at cyber2000fb_enable_ddc() and cyber2000fb_disable_ddc() Add the missing __acquires(&cfb->reg_b0_lock) annotation Add the missing __releases(&cfb->reg_b0_lock) annotation Signed-off-by: Jules Irenge --- drivers/video/fbdev/cyber2000fb.c | 2 ++ 1 file changed, 2 inser

[PATCH 16/30] drm/vkms: Add missing annotation for vkms_crtc_atomic_begin()

2020-02-17 Thread Jules Irenge
Sparse reports a warning at vkms_crtc_atomic_begin() warning: context imbalance in vkms_crtc_atomic_begin() - wrong count at exit The root cause is the missing annotation at vkms_crtc_atomic_begin() Add the missing __acquires(&vkms_output->lock) annotation Signed-off-by: Jules

[PATCH 17/30] drm/vkms: Add missing annotation for vkms_crtc_atomic_flush()

2020-02-17 Thread Jules Irenge
Sparse reports a warning at vkms_crtc_atomic_flush() warning: context imbalance in vkms_crtc_atomic_flush() - unexpected unlock The root cause is the missing annotation at vkms_crtc_atomic_flush() Add the missing __releases(&vkms_output->lock) annotation Signed-off-by: Jules

[PATCH] gpu: ttm: add __releases function

2019-11-27 Thread Jules Irenge
Add releases() function to fix context imbalance. Issue detected by sparse tool. warning: context imbalance in ttm_bo_cleanup_refs - unexpected unlock Signed-off-by: Jules Irenge --- drivers/gpu/drm/ttm/ttm_bo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu

[PATCH] drm: radeon: replace 0 with NULL

2019-11-26 Thread Jules Irenge
Replace 0 with NULL to fix sparse tool warning warning: Using plain integer as NULL pointer Signed-off-by: Jules Irenge --- drivers/gpu/drm/radeon/radeon_audio.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/radeon/radeon_audio.c b/drivers/gpu/drm/radeon