Skip to content

Commit 1e75624

Browse files
JuliaLawallbrauner
authored andcommitted
fs: Reorganize kerneldoc parameter names
Reorganize kerneldoc parameter names to match the parameter order in the function header. Problems identified using Coccinelle. Signed-off-by: Julia Lawall <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Christian Brauner <[email protected]>
1 parent e6957c9 commit 1e75624

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

fs/char_dev.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -562,8 +562,8 @@ int cdev_device_add(struct cdev *cdev, struct device *dev)
562562

563563
/**
564564
* cdev_device_del() - inverse of cdev_device_add
565-
* @dev: the device structure
566565
* @cdev: the cdev structure
566+
* @dev: the device structure
567567
*
568568
* cdev_device_del() is a helper function to call cdev_del and device_del.
569569
* It should be used whenever cdev_device_add is used.

fs/dcache.c

+2-2
Original file line numberDiff line numberDiff line change
@@ -2049,8 +2049,8 @@ EXPORT_SYMBOL(d_obtain_root);
20492049

20502050
/**
20512051
* d_add_ci - lookup or allocate new dentry with case-exact name
2052-
* @inode: the inode case-insensitive lookup has found
20532052
* @dentry: the negative dentry that was passed to the parent's lookup func
2053+
* @inode: the inode case-insensitive lookup has found
20542054
* @name: the case-exact name to be associated with the returned dentry
20552055
*
20562056
* This is to avoid filling the dcache with case-insensitive names to the
@@ -2103,8 +2103,8 @@ EXPORT_SYMBOL(d_add_ci);
21032103

21042104
/**
21052105
* d_same_name - compare dentry name with case-exact name
2106-
* @parent: parent dentry
21072106
* @dentry: the negative dentry that was passed to the parent's lookup func
2107+
* @parent: parent dentry
21082108
* @name: the case-exact name to be associated with the returned dentry
21092109
*
21102110
* Return: true if names are same, or false

fs/seq_file.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -343,8 +343,8 @@ EXPORT_SYMBOL(seq_lseek);
343343

344344
/**
345345
* seq_release - free the structures associated with sequential file.
346-
* @file: file in question
347346
* @inode: its inode
347+
* @file: file in question
348348
*
349349
* Frees the structures associated with sequential file; can be used
350350
* as ->f_op->release() if you don't have private data to destroy.

0 commit comments

Comments
 (0)