Skip to content

Commit 6325eea

Browse files
2045geminigregkh
authored andcommitted
debugfs: fix placement of EXPORT_SYMBOL_GPL for debugfs_create_str()
[ Upstream commit 4afc929 ] The EXPORT_SYMBOL_GPL() for debugfs_create_str was placed incorrectly away from the function definition. Move it immediately below the debugfs_create_str() function where it belongs. Fixes: d60b59b ("debugfs: Export debugfs_create_str symbol") Signed-off-by: Gui-Dong Han <hanguidong02@gmail.com> Link: https://patch.msgid.link/20260323085930.88894-3-hanguidong02@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent f9c4894 commit 6325eea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

fs/debugfs/file.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -907,7 +907,6 @@ ssize_t debugfs_read_file_str(struct file *file, char __user *user_buf,
907907

908908
return ret;
909909
}
910-
EXPORT_SYMBOL_GPL(debugfs_create_str);
911910

912911
static ssize_t debugfs_write_file_str(struct file *file, const char __user *user_buf,
913912
size_t count, loff_t *ppos)
@@ -1002,6 +1001,7 @@ void debugfs_create_str(const char *name, umode_t mode,
10021001
debugfs_create_mode_unsafe(name, mode, parent, value, &fops_str,
10031002
&fops_str_ro, &fops_str_wo);
10041003
}
1004+
EXPORT_SYMBOL_GPL(debugfs_create_str);
10051005

10061006
static ssize_t read_file_blob(struct file *file, char __user *user_buf,
10071007
size_t count, loff_t *ppos)

0 commit comments

Comments
 (0)