Skip to content

Commit 7820c6e

Browse files
Yang Lismfrench
authored andcommitted
ksmbd: Fix some kernel-doc comments
Remove some warnings found by running scripts/kernel-doc, which is caused by using 'make W=1'. fs/ksmbd/misc.c:30: warning: Function parameter or member 'str' not described in 'match_pattern' fs/ksmbd/misc.c:30: warning: Excess function parameter 'string' description in 'match_pattern' fs/ksmbd/misc.c:163: warning: Function parameter or member 'share' not described in 'convert_to_nt_pathname' fs/ksmbd/misc.c:163: warning: Function parameter or member 'path' not described in 'convert_to_nt_pathname' fs/ksmbd/misc.c:163: warning: Excess function parameter 'filename' description in 'convert_to_nt_pathname' fs/ksmbd/misc.c:163: warning: Excess function parameter 'sharepath' description in 'convert_to_nt_pathname' fs/ksmbd/misc.c:259: warning: Function parameter or member 'share' not described in 'convert_to_unix_name' fs/ksmbd/misc.c:259: warning: Function parameter or member 'name' not described in 'convert_to_unix_name' fs/ksmbd/misc.c:259: warning: Excess function parameter 'path' description in 'convert_to_unix_name' fs/ksmbd/misc.c:259: warning: Excess function parameter 'tid' description in 'convert_to_unix_name' Reported-by: Abaci Robot <[email protected]> Signed-off-by: Yang Li <[email protected]> Acked-by: Namjae Jeon <[email protected]> Signed-off-by: Steve French <[email protected]>
1 parent 7a84399 commit 7820c6e

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

fs/ksmbd/misc.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
* wildcard '*' and '?'
2121
* TODO : implement consideration about DOS_DOT, DOS_QM and DOS_STAR
2222
*
23-
* @string: string to compare with a pattern
23+
* @str: string to compare with a pattern
2424
* @len: string length
2525
* @pattern: pattern string which might include wildcard '*' and '?'
2626
*
@@ -152,8 +152,8 @@ int parse_stream_name(char *filename, char **stream_name, int *s_type)
152152
/**
153153
* convert_to_nt_pathname() - extract and return windows path string
154154
* whose share directory prefix was removed from file path
155-
* @filename : unix filename
156-
* @sharepath: share path string
155+
* @share: ksmbd_share_config pointer
156+
* @path: path to report
157157
*
158158
* Return : windows path string or error
159159
*/
@@ -250,8 +250,8 @@ char *ksmbd_extract_sharename(char *treename)
250250

251251
/**
252252
* convert_to_unix_name() - convert windows name to unix format
253-
* @path: name to be converted
254-
* @tid: tree id of mathing share
253+
* @share: ksmbd_share_config pointer
254+
* @name: file name that is relative to share
255255
*
256256
* Return: converted name on success, otherwise NULL
257257
*/

0 commit comments

Comments
 (0)