Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

debugfs: fix placement of EXPORT_SYMBOL_GPL for debugfs_create_str()

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: d60b59b96795 ("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>

authored by

Gui-Dong Han and committed by
Greg Kroah-Hartman
4afc929c 31de8398

+1 -1
+1 -1
fs/debugfs/file.c
··· 1047 1047 1048 1048 return ret; 1049 1049 } 1050 - EXPORT_SYMBOL_GPL(debugfs_create_str); 1051 1050 1052 1051 static ssize_t debugfs_write_file_str(struct file *file, const char __user *user_buf, 1053 1052 size_t count, loff_t *ppos) ··· 1141 1142 debugfs_create_mode_unsafe(name, mode, parent, value, &fops_str, 1142 1143 &fops_str_ro, &fops_str_wo); 1143 1144 } 1145 + EXPORT_SYMBOL_GPL(debugfs_create_str); 1144 1146 1145 1147 static ssize_t read_file_blob(struct file *file, char __user *user_buf, 1146 1148 size_t count, loff_t *ppos)