[PATCH 04/20] drm: move "struct drm_magic_entry" to drm_auth.c

2014-08-29 Thread Thierry Reding
On Fri, Aug 29, 2014 at 12:12:30PM +0200, David Herrmann wrote: > 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

[PATCH 04/20] drm: move "struct drm_magic_entry" to drm_auth.c

2014-08-29 Thread David Herrmann
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.