]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
drm: move "struct drm_magic_entry" to drm_auth.c
authorDavid Herrmann <dh.herrmann@gmail.com>
Fri, 29 Aug 2014 10:12:30 +0000 (12:12 +0200)
committerDave Airlie <airlied@redhat.com>
Wed, 10 Sep 2014 07:39:50 +0000 (17:39 +1000)
commit71d39483de474d9513e23d9e21af7483684f4745
tree8fef51a2ace8d9f7971f53b2e50a996c7a0f37b0
parent03decbe57ac6c9e632f7cde0f7d0a54bbcaf8464
drm: move "struct drm_magic_entry" to drm_auth.c

In drm_release(), we currently call drm_remove_magic() if the drm_file
has a drm-magic attached. Therefore, once drm_master_release() is called,
the magic-list _must_ be empty.

By dropping the no-op cleanup, we can move "struct drm_magic_entry" to
drm_auth.c and avoid exposing it to all of DRM.

Signed-off-by: David Herrmann <dh.herrmann@gmail.com>
Reviewed-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_auth.c
drivers/gpu/drm/drm_drv.c
include/drm/drmP.h