aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmil Velikov2020-05-15 10:50:45 +0100
committerEmil Velikov2020-05-19 21:52:25 +0100
commite33f4234263da26154be0b1e5ffc7a2c5e52c3e3 (patch)
tree44d121fd5c726413105d16ddc3d96c865c72954a
parent5b4231fb62f05457ef5ff283796cfd2df28ea2a1 (diff)
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 <daniel.vetter@ffwll.ch> Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch> Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Acked-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/20200515095118.2743122-6-emil.l.velikov@gmail.com
-rw-r--r--include/drm/drm_device.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/drm/drm_device.h b/include/drm/drm_device.h
index a55874db9dd4..0988351d743c 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;