[PATCH] drm: Export debugfs functionality for GPL code only

green at linuxhacker.ru green at linuxhacker.ru
Sun Feb 7 23:50:49 UTC 2016


From: Oleg Drokin <green at linuxhacker.ru>

drm_debugfs_create_files and drm_debugfs_remove_files
should only be available for GPL-code only as per Greg-KH

Signed-off-by: Oleg Drokin <green at linuxhacker.ru>
---
 drivers/gpu/drm/drm_debugfs.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/gpu/drm/drm_debugfs.c b/drivers/gpu/drm/drm_debugfs.c
index 3bcf8e6..17ae4ae 100644
--- a/drivers/gpu/drm/drm_debugfs.c
+++ b/drivers/gpu/drm/drm_debugfs.c
@@ -128,7 +128,7 @@ fail:
 	drm_debugfs_remove_files(files, count, minor);
 	return ret;
 }
-EXPORT_SYMBOL(drm_debugfs_create_files);
+EXPORT_SYMBOL_GPL(drm_debugfs_create_files);
 
 /**
  * Initialize the DRI debugfs filesystem for a device
@@ -209,7 +209,7 @@ int drm_debugfs_remove_files(const struct drm_info_list *files, int count,
 	mutex_unlock(&minor->debugfs_lock);
 	return 0;
 }
-EXPORT_SYMBOL(drm_debugfs_remove_files);
+EXPORT_SYMBOL_GPL(drm_debugfs_remove_files);
 
 /**
  * Cleanup the debugfs filesystem resources.
-- 
2.1.0



More information about the dri-devel mailing list