diff mbox

[3/8] drm/auth: Export drm_dropmaster_ioctl()

Message ID 1505140322-17416-4-git-send-email-noralf@tronnes.org (mailing list archive)
State New, archived
Headers show

Commit Message

Noralf Trønnes Sept. 11, 2017, 2:31 p.m. UTC
Export drm_dropmaster_ioctl() so in-kernel drm_file_alloc() users can
drop master.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
---
 drivers/gpu/drm/drm_auth.c     | 1 +
 drivers/gpu/drm/drm_internal.h | 2 --
 include/drm/drm_auth.h         | 2 ++
 3 files changed, 3 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/drivers/gpu/drm/drm_auth.c b/drivers/gpu/drm/drm_auth.c
index 7ff6973..8417130 100644
--- a/drivers/gpu/drm/drm_auth.c
+++ b/drivers/gpu/drm/drm_auth.c
@@ -221,6 +221,7 @@  int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
 	mutex_unlock(&dev->master_mutex);
 	return ret;
 }
+EXPORT_SYMBOL(drm_dropmaster_ioctl);
 
 int drm_master_open(struct drm_file *file_priv)
 {
diff --git a/drivers/gpu/drm/drm_internal.h b/drivers/gpu/drm/drm_internal.h
index 4e906b8..f690ccd 100644
--- a/drivers/gpu/drm/drm_internal.h
+++ b/drivers/gpu/drm/drm_internal.h
@@ -78,8 +78,6 @@  int drm_authmagic(struct drm_device *dev, void *data,
 		  struct drm_file *file_priv);
 int drm_setmaster_ioctl(struct drm_device *dev, void *data,
 			struct drm_file *file_priv);
-int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
-			 struct drm_file *file_priv);
 int drm_master_open(struct drm_file *file_priv);
 void drm_master_release(struct drm_file *file_priv);
 
diff --git a/include/drm/drm_auth.h b/include/drm/drm_auth.h
index 81a40c2..b72c137 100644
--- a/include/drm/drm_auth.h
+++ b/include/drm/drm_auth.h
@@ -81,5 +81,7 @@  struct drm_master {
 struct drm_master *drm_master_get(struct drm_master *master);
 void drm_master_put(struct drm_master **master);
 bool drm_is_current_master(struct drm_file *fpriv);
+int drm_dropmaster_ioctl(struct drm_device *dev, void *data,
+			 struct drm_file *file_priv);
 
 #endif