]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm/vkms: Suppress context imbalance detected by sparse warning
authorLouis Chauvet <louis.chauvet@bootlin.com>
Thu, 12 Sep 2024 15:25:33 +0000 (17:25 +0200)
committerMaíra Canal <mcanal@igalia.com>
Tue, 24 Sep 2024 23:39:56 +0000 (20:39 -0300)
commit2b75feb312894f87d0539d46eeb364f447df723f
tree6dfda6ff9765dbfc6ead48f47f057dd511e37783
parent6e5eb6dcb3042adcda432a3498d0d62d91588c4d
drm/vkms: Suppress context imbalance detected by sparse warning

The functions `vkms_crtc_atomic_begin` and `vkms_crtc_atomic_flush` are
responsible for locking and unlocking a mutex, respectively. Add the
`__acquires` and `__releases` annotations to these functions to prevent
the associated sparse warning about context imbalance.

Signed-off-by: Louis Chauvet <louis.chauvet@bootlin.com>
Reviewed-by: José Expósito <jose.exposito89@gmail.com>
Signed-off-by: Maíra Canal <mcanal@igalia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240912-vkms-warnings-v1-1-59f3e13ea8e5@bootlin.com
drivers/gpu/drm/vkms/vkms_crtc.c