[v6,09/17] debugfs: Export debugfs_create_str symbol

Message ID 20221229182253.948175-10-cristian.marussi@arm.com
State New
Headers
Series Introduce a unified API for SCMI Server testing |

Commit Message

Cristian Marussi Dec. 29, 2022, 6:22 p.m. UTC
  Needed by SCMI Raw mode support when compiled as a loadable module.

Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Cc: "Rafael J. Wysocki" <rafael@kernel.org>
Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
---
Used by the following patch in this series:

"firmware: arm_scmi: Populate a common SCMI debugsfs root"

SCMI stack can be configured as module so export is needed.
---
 fs/debugfs/file.c | 1 +
 1 file changed, 1 insertion(+)
  

Comments

Greg KH Jan. 19, 2023, 3:35 p.m. UTC | #1
On Thu, Dec 29, 2022 at 06:22:45PM +0000, Cristian Marussi wrote:
> Needed by SCMI Raw mode support when compiled as a loadable module.
> 
> Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
> Cc: "Rafael J. Wysocki" <rafael@kernel.org>
> Signed-off-by: Cristian Marussi <cristian.marussi@arm.com>
> ---
> Used by the following patch in this series:
> 
> "firmware: arm_scmi: Populate a common SCMI debugsfs root"
> 
> SCMI stack can be configured as module so export is needed.
> ---
>  fs/debugfs/file.c | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
> index b54f470e0d03..1f971c880dde 100644
> --- a/fs/debugfs/file.c
> +++ b/fs/debugfs/file.c
> @@ -899,6 +899,7 @@ ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf,
>  
>  	return ret;
>  }
> +EXPORT_SYMBOL_GPL(debugfs_create_str);


Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  

Patch

diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c
index b54f470e0d03..1f971c880dde 100644
--- a/fs/debugfs/file.c
+++ b/fs/debugfs/file.c
@@ -899,6 +899,7 @@  ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf,
 
 	return ret;
 }
+EXPORT_SYMBOL_GPL(debugfs_create_str);
 
 static ssize_t debugfs_write_file_str(struct file *file, const char __user *user_buf,
 				      size_t count, loff_t *ppos)