Messages in this thread Patch in this message | | | From | Richard Fitzgerald <> | Subject | [PATCH 2/5] debugfs: Remove kerneldoc that says debugfs_create_str() returns a value | Date | Tue, 16 May 2023 17:07:50 +0100 |
| |
Remove the lines of kerneldoc that say debugfs_create_str() returns a struct dentry *. The function does not return a value.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> --- fs/debugfs/file.c | 9 --------- 1 file changed, 9 deletions(-)
diff --git a/fs/debugfs/file.c b/fs/debugfs/file.c index 2c085ab4e800..0c039a3d9a42 100644 --- a/fs/debugfs/file.c +++ b/fs/debugfs/file.c @@ -943,15 +943,6 @@ static const struct file_operations fops_str_wo = { * This function creates a file in debugfs with the given name that * contains the value of the variable @value. If the @mode variable is so * set, it can be read from, and written to. - * - * This function will return a pointer to a dentry if it succeeds. This - * pointer must be passed to the debugfs_remove() function when the file is - * to be removed (no automatic cleanup happens if your module is unloaded, - * you are responsible here.) If an error occurs, ERR_PTR(-ERROR) will be - * returned. - * - * If debugfs is not enabled in the kernel, the value ERR_PTR(-ENODEV) will - * be returned. */ void debugfs_create_str(const char *name, umode_t mode, struct dentry *parent, char **value) -- 2.30.2
| |