Skip to contentSkip to conversation

ksmbd: Add kernel-doc for ksmbd_extract_sharename() function

PATCH Applied Yang Li 3 participants 3 messages Feb 2, 2024

Subsystems (2)
lore
Share & tools
lore

Yang Li

author
#0 lore raw

PATCH 1/1 ksmbd: Add kernel-doc for ksmbd_extract_sharename() function

The ksmbd_extract_sharename() function lacked a complete kernel-doc comment. This patch adds parameter descriptions and detailed function behavior to improve code readability and maintainability.

---
 fs/smb/server/misc.c | 1 +
 1 file changed, 1 insertion(+)
fs/smb/server/misc.c +1 -0
index 9e8afaa686e3..1a5faa6f6e7b 100644
@@ -261,6 +261,7 @@ char *ksmbd_casefold_sharename(struct unicode_map *um, const char *name)
 
 /**
  * ksmbd_extract_sharename() - get share name from tree connect request
+ * @um: pointer to a unicode_map structure for character encoding handling
  * @treename:	buffer containing tree name and share name
  *
  * Return:      share name on success, otherwise error
Signature · 1 line
2.20.1.7.g153144c
Acked-by on v1 1/1
#1 lore raw
Quoted 5 lines · Yang Li

The ksmbd_extract_sharename() function lacked a complete kernel-doc comment. This patch adds parameter descriptions and detailed function behavior to improve code readability and maintainability.

Thanks.

Quoted 16 lines
---
 fs/smb/server/misc.c | 1 +
 1 file changed, 1 insertion(+)
fs/smb/server/misc.c +1 -0
index 9e8afaa686e3..1a5faa6f6e7b 100644
@@ -261,6 +261,7 @@ char *ksmbd_casefold_sharename(struct unicode_map *um, const char *name)
 
 /**
  * ksmbd_extract_sharename() - get share name from tree connect request
+ * @um: pointer to a unicode_map structure for character encoding handling
  * @treename:	buffer containing tree name and share name
  *
  * Return:      share name on success, otherwise error
Signature · 1 line
#Randy
maintainer Applied
#2 lore raw
In reply to Yang Li

2024-02-02 17:13 GMT+09:00, Yang Li <[email protected]>:

Quoted 5 lines

The ksmbd_extract_sharename() function lacked a complete kernel-doc comment. This patch adds parameter descriptions and detailed function behavior to improve code readability and maintainability.

Applied it with Randy's acked-by tag to #ksmbd-for-next-next. Thanks for your patch.