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

From: green
Date: Sun Feb 07 2016 - 18:52:23 EST


From: Oleg Drokin <green@xxxxxxxxxxxxxx>

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@xxxxxxxxxxxxxx>
---
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