From e33f4234263da26154be0b1e5ffc7a2c5e52c3e3 Mon Sep 17 00:00:00 2001 From: Emil Velikov Date: Fri, 15 May 2020 10:50:45 +0100 Subject: [PATCH] drm/doc: add WARNING for drm_device::struct_mutex The mutex should be used, only by legacy drivers. Add a big warning to deter people from using it. Suggested-by: Daniel Vetter Reviewed-by: Daniel Vetter Signed-off-by: Emil Velikov Acked-by: Thomas Zimmermann Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-6-emil.l.velikov@gmail.com --- include/drm/drm_device.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h index a55874d..0988351 100644 --- a/include/drm/drm_device.h +++ b/include/drm/drm_device.h @@ -146,6 +146,9 @@ struct drm_device { * @struct_mutex: * * Lock for others (not &drm_minor.master and &drm_file.is_master) + * + * WARNING: + * Only drivers annotated with DRIVER_LEGACY should be using this. */ struct mutex struct_mutex; -- 2.7.4