mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH -next] ksmbd: Fix some kernel-doc comments
@ 2022-05-12  7:56 Yang Li
  2022-05-16 13:02 ` Namjae Jeon
  0 siblings, 1 reply; 2+ messages in thread
From: Yang Li @ 2022-05-12  7:56 UTC (permalink / raw)
  To: linkinjeon
  Cc: sfrench, hyc.lee, senozhatsky, linux-cifs, linux-kernel, Yang Li,
	Abaci Robot

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 <abaci@linux.alibaba.com>
Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
---
 fs/ksmbd/misc.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/fs/ksmbd/misc.c b/fs/ksmbd/misc.c
index 1e2076a53bed..df991107ad2c 100644
--- a/fs/ksmbd/misc.c
+++ b/fs/ksmbd/misc.c
@@ -20,7 +20,7 @@
  * wildcard '*' and '?'
  * TODO : implement consideration about DOS_DOT, DOS_QM and DOS_STAR
  *
- * @string:	string to compare with a pattern
+ * @str:	string to compare with a pattern
  * @len:	string length
  * @pattern:	pattern string which might include wildcard '*' and '?'
  *
@@ -152,8 +152,8 @@ int parse_stream_name(char *filename, char **stream_name, int *s_type)
 /**
  * convert_to_nt_pathname() - extract and return windows path string
  *      whose share directory prefix was removed from file path
- * @filename : unix filename
- * @sharepath: share path string
+ * @share: ksmbd_share_config pointer
+ * @path: path to report
  *
  * Return : windows path string or error
  */
@@ -250,8 +250,8 @@ char *ksmbd_extract_sharename(char *treename)
 
 /**
  * convert_to_unix_name() - convert windows name to unix format
- * @path:	name to be converted
- * @tid:	tree id of mathing share
+ * @share:	ksmbd_share_config pointer
+ * @name:	file name that is relative to share
  *
  * Return:	converted name on success, otherwise NULL
  */
-- 
2.20.1.7.g153144c


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH -next] ksmbd: Fix some kernel-doc comments
  2022-05-12  7:56 [PATCH -next] ksmbd: Fix some kernel-doc comments Yang Li
@ 2022-05-16 13:02 ` Namjae Jeon
  0 siblings, 0 replies; 2+ messages in thread
From: Namjae Jeon @ 2022-05-16 13:02 UTC (permalink / raw)
  To: Yang Li
  Cc: sfrench, hyc.lee, senozhatsky, linux-cifs, linux-kernel, Abaci Robot

2022-05-12 16:56 GMT+09:00, Yang Li <yang.lee@linux.alibaba.com>:
> 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 <abaci@linux.alibaba.com>
> Signed-off-by: Yang Li <yang.lee@linux.alibaba.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>

Thanks for your patch!

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2022-05-16 13:02 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-05-12  7:56 [PATCH -next] ksmbd: Fix some kernel-doc comments Yang Li
2022-05-16 13:02 ` Namjae Jeon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®