net/iucv: clean up iucv kernel-doc warnings
Subsystems (4)
PATCH v3 1/1 net/iucv: clean up iucv kernel-doc warnings
Fix numerous (many) kernel-doc warnings in iucv.[ch]:
- convert function documentation comments to a common (kernel-doc) look, even for static functions (without "/**")
- use matching parameter and parameter description names
- use better wording in function descriptions (Jakub & AI)
- remove duplicate kernel-doc comments from the header file (Jakub)
Examples:
Warning: include/net/iucv/iucv.h:210 missing initial short description
on line: * iucv_unregister
Warning: include/net/iucv/iucv.h:216 function parameter 'handle' not
described in 'iucv_unregister'
Warning: include/net/iucv/iucv.h:467 function parameter 'answer' not
described in 'iucv_message_send2way'
Warning: net/iucv/iucv.c:727 missing initial short description on line:
* iucv_cleanup_queue
Build-tested with both "make htmldocs" and "make ARCH=s390 defconfig all".
---
v3:
- I didn't use Alexandra'a (v2) Reviewed-by: due to the number of changes.
- leave kernel-doc ("/**") on static functions in iucv.c (I did not convert other static functions to kernel-doc comments.)
v2:
- correct verbs in descriptions of 2 functions (Jakub)
- remove duplicate kernel-doc comments from the header file (Jakub)
include/net/iucv/iucv.h | 207 ---------------------------------- net/iucv/iucv.c | 227 ++++++++++++++++++-------------------- 2 files changed, 111 insertions(+), 323 deletions(-)
include/net/iucv/iucv.h +3 -204
@@ -195,35 +195,15 @@ struct iucv_handler {struct list_head paths; }; -/** -* iucv_register: -* @handler: address of iucv handler structure -* @smp: != 0 indicates that the handler can deal with out of order messages -* -* Registers a driver with IUCV. -* -* Returns: 0 on success, -ENOMEM if the memory allocation for the pathid -* table failed, or -EIO if IUCV_DECLARE_BUFFER failed on all cpus. -*/ int iucv_register (struct iucv_handler *handler,int smp); +void iucv_unregister (struct iucv_handler *handler,int smp);/** -* iucv_unregister -* @handler: address of iucv handler structure -* @smp: != 0 indicates that the handler can deal with out of order messages -* -* Unregister driver from IUCV. -*/ -void iucv_unregister (struct iucv_handler *handle,int smp); - -/** -* iucv_path_alloc +* iucv_path_alloc - Allocate a new path structure for use with iucv_connect. * @msglim: initial message limit * @flags: initial flags * @gfp: kmalloc allocation flag * -* Allocate a new path structure for use with iucv_connect. -* * Returns: NULL if the memory allocation failed or a pointer to the * path structure. */
@@ -240,229 +220,48 @@ static inline struct iucv_path *iucv_pat }/** -* iucv_path_free +* iucv_path_free - Frees a path structure. * @path: address of iucv path structure -* -* Frees a path structure. */ static inline void iucv_path_free (struct iucv_path *path) {kfree (path); } -/** -* iucv_path_accept -* @path: address of iucv path structure -* @handler: address of iucv handler structure -* @userdata: 16 bytes of data reflected to the communication partner -* @private: private data passed to interrupt handlers for this path -* -* This function is issued after the user received a connection pending -* external interrupt and now wishes to complete the IUCV communication path. -* -* Returns: the result of the CP IUCV call. -*/ int iucv_path_accept (struct iucv_path *path,struct iucv_handler *handler,u8 *userdata,void *private); -/** -* iucv_path_connect -* @path: address of iucv path structure -* @handler: address of iucv handler structure -* @userid: 8-byte user identification -* @system: 8-byte target system identification -* @userdata: 16 bytes of data reflected to the communication partner -* @private: private data passed to interrupt handlers for this path -* -* This function establishes an IUCV path. Although the connect may complete -* successfully, you are not able to use the path until you receive an IUCV -* Connection Complete external interrupt. -* -* Returns: the result of the CP IUCV call. -*/ int iucv_path_connect (struct iucv_path *path,struct iucv_handler *handler,u8 *userid,u8 *system,u8 *userdata,void *private); -/** -* iucv_path_quiesce: -* @path: address of iucv path structure -* @userdata: 16 bytes of data reflected to the communication partner -* -* This function temporarily suspends incoming messages on an IUCV path. -* You can later reactivate the path by invoking the iucv_resume function. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_path_quiesce (struct iucv_path *path,u8 *userdata); -/** -* iucv_path_resume: -* @path: address of iucv path structure -* @userdata: 16 bytes of data reflected to the communication partner -* -* This function resumes incoming messages on an IUCV path that has -* been stopped with iucv_path_quiesce. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_path_resume (struct iucv_path *path,u8 *userdata); -/** -* iucv_path_sever -* @path: address of iucv path structure -* @userdata: 16 bytes of data reflected to the communication partner -* -* This function terminates an IUCV path. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_path_sever (struct iucv_path *path,u8 *userdata); -/** -* iucv_message_purge -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @srccls: source class of message -* -* Cancels a message you have sent. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_purge (struct iucv_path *path,struct iucv_message *msg,u32 srccls); -/** -* iucv_message_receive -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: flags that affect how the message is received (IUCV_IPBUFLST) -* @buffer: address of data buffer or address of struct iucv_array -* @size: length of data buffer -* @residual: -* -* This function receives messages that are being sent to you over -* established paths. This function will deal with RMDATA messages -* embedded in struct iucv_message as well. -* -* Locking: local_bh_enable/local_bh_disable -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_receive (struct iucv_path *path,struct iucv_message *msg,u8 flags,void *buffer,size_t size,size_t *residual); -/** -* __iucv_message_receive -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: flags that affect how the message is received (IUCV_IPBUFLST) -* @buffer: address of data buffer or address of struct iucv_array -* @size: length of data buffer -* @residual: -* -* This function receives messages that are being sent to you over -* established paths. This function will deal with RMDATA messages -* embedded in struct iucv_message as well. -* -* Locking: no locking. -* -* Returns: the result from the CP IUCV call. -*/ int __iucv_message_receive (struct iucv_path *path,struct iucv_message *msg,u8 flags,void *buffer,size_t size,size_t *residual); -/** -* iucv_message_reject -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* -* The reject function refuses a specified message. Between the time you -* are notified of a message and the time that you complete the message, -* the message may be rejected. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_reject (struct iucv_path *path,struct iucv_message *msg); -/** -* iucv_message_reply -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: how the reply is sent (IUCV_IPRMDATA, IUCV_IPPRTY, IUCV_IPBUFLST) -* @reply: address of data buffer or address of struct iucv_array -* @size: length of reply data buffer -* -* This function responds to the two-way messages that you receive. You -* must identify completely the message to which you wish to reply. ie, -* pathid, msgid, and trgcls. Prmmsg signifies the data is moved into -* the parameter list. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_reply (struct iucv_path *path,struct iucv_message *msg,u8 flags,void *reply,size_t size); -/** -* iucv_message_send -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: how the message is sent (IUCV_IPRMDATA, IUCV_IPPRTY, IUCV_IPBUFLST) -* @srccls: source class of message -* @buffer: address of data buffer or address of struct iucv_array -* @size: length of send buffer -* -* This function transmits data to another application. Data to be -* transmitted is in a buffer and this is a one-way message and the -* receiver will not reply to the message. -* -* Locking: local_bh_enable/local_bh_disable -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_send (struct iucv_path *path,struct iucv_message *msg,u8 flags,u32 srccls,void *buffer,size_t size); -/** -* __iucv_message_send -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: how the message is sent (IUCV_IPRMDATA, IUCV_IPPRTY, IUCV_IPBUFLST) -* @srccls: source class of message -* @buffer: address of data buffer or address of struct iucv_array -* @size: length of send buffer -* -* This function transmits data to another application. Data to be -* transmitted is in a buffer and this is a one-way message and the -* receiver will not reply to the message. -* -* Locking: no locking. -* -* Returns: the result from the CP IUCV call. -*/ int __iucv_message_send (struct iucv_path *path,struct iucv_message *msg,u8 flags,u32 srccls,void *buffer,size_t size); -/** -* iucv_message_send2way -* @path: address of iucv path structure -* @msg: address of iucv msg structure -* @flags: how the message is sent and the reply is received -* (IUCV_IPRMDATA, IUCV_IPBUFLST, IUCV_IPPRTY, IUCV_ANSLST) -* @srccls: source class of message -* @buffer: address of data buffer or address of struct iucv_array -* @size: length of send buffer -* @ansbuf: address of answer buffer or address of struct iucv_array -* @asize: size of reply buffer -* -* This function transmits data to another application. Data to be -* transmitted is in a buffer. The receiver of the send is expected to -* reply to the message and a buffer is provided into which IUCV moves -* the reply to this message. -* -* Returns: the result from the CP IUCV call. -*/ int iucv_message_send2way (struct iucv_path *path,struct iucv_message *msg,u8 flags,u32 srccls,void *buffer,size_t size,void *answer,size_t asize,size_t *residual);
net/iucv/iucv.c +108 -119
593 lines not on this page · raw message
Quoted 19 lines · Randy Dunlap
Fix numerous (many) kernel-doc warnings in iucv.[ch]:
- convert function documentation comments to a common (kernel-doc) look, even for static functions (without "/**")
- use matching parameter and parameter description names
- use better wording in function descriptions (Jakub & AI)
- remove duplicate kernel-doc comments from the header file (Jakub)Examples:
Warning:
include/net/iucv/iucv.h:210missing initial short description
on line: *iucv_unregister
Warning:include/net/iucv/iucv.h:216function parameter 'handle' not
described in 'iucv_unregister'
Warning:include/net/iucv/iucv.h:467function parameter 'answer' not
described in 'iucv_message_send2way'
Warning:net/iucv/iucv.c:727missing initial short description on line:
*iucv_cleanup_queue
Quoted 8 lines
Build-tested with both "make htmldocs" and "make ARCH=s390 defconfig all".
Signed-off-by Randy Dunlap <[email protected]>---
v3:
- I didn't use Alexandra'a (v2) Reviewed-by: due to the number of changes.
- leave kernel-doc ("/**") on static functions iniucv.c(I did not convert other static functions to kernel-doc comments.)
Thank you. Feel free to add
There are still warnings left about missing return value descriptions:
Quoted 1 line
make W=2 clean
net/iucv/2>&1 | grep ^Warning
Warning: net/iucv/iucv.c:691 No description found for return value of 'iucv_sever_pathid'
Warning: net/iucv/iucv.c:1099 No description found for return value of 'iucv_message_receive_iprmdata'
Warning: net/iucv/iucv.c:1856 No description found for return value of 'iucv_init'
Warning: net/iucv/iucv.c:691 No description found for return value of 'iucv_sever_pathid'
Warning: net/iucv/iucv.c:1099 No description found for return value of 'iucv_message_receive_iprmdata'
Warning: net/iucv/iucv.c:1856 No description found for return value of 'iucv_init'
Warning: net/iucv/af_iucv.c:131 No description found for return value of 'iucv_msg_length'
Warning: net/iucv/af_iucv.c:150 No description found for return value of 'iucv_sock_in_state'
Warning: net/iucv/af_iucv.c:163 No description found for return value of 'iucv_below_msglim'
Warning: net/iucv/af_iucv.c:889 No description found for return value of 'iucv_send_iprm'
Warning: net/iucv/af_iucv.c:131 No description found for return value of 'iucv_msg_length'
Warning: net/iucv/af_iucv.c:150 No description found for return value of 'iucv_sock_in_state'
Warning: net/iucv/af_iucv.c:163 No description found for return value of 'iucv_below_msglim'
Warning: net/iucv/af_iucv.c:889 No description found for return value of 'iucv_send_iprm'
Our team will fix those, unless you want to add them to this patch.
Quoted 52 lines · Alexandra Winter
Quoted 19 lines · Randy Dunlap
Fix numerous (many) kernel-doc warnings in iucv.[ch]:
- convert function documentation comments to a common (kernel-doc) look, even for static functions (without "/**")
- use matching parameter and parameter description names
- use better wording in function descriptions (Jakub & AI)
- remove duplicate kernel-doc comments from the header file (Jakub)Examples:
Warning:
include/net/iucv/iucv.h:210missing initial short description
on line: *iucv_unregister
Warning:include/net/iucv/iucv.h:216function parameter 'handle' not
described in 'iucv_unregister'
Warning:include/net/iucv/iucv.h:467function parameter 'answer' not
described in 'iucv_message_send2way'
Warning:net/iucv/iucv.c:727missing initial short description on line:
*iucv_cleanup_queueQuoted 8 lines
Build-tested with both "make htmldocs" and "make ARCH=s390 defconfig all".
Signed-off-by Randy Dunlap <[email protected]>---
v3:
- I didn't use Alexandra'a (v2) Reviewed-by: due to the number of changes.
- leave kernel-doc ("/**") on static functions iniucv.c(I did not convert other static functions to kernel-doc comments.)Thank you. Feel free to add
Reviewed-by Alexandra Winter <[email protected]>There are still warnings left about missing return value descriptions:
Quoted 1 line
make W=2 clean
net/iucv/2>&1 | grep ^WarningWarning:
net/iucv/iucv.c:691No description found for return value of 'iucv_sever_pathid'
Warning:net/iucv/iucv.c:1099No description found for return value of 'iucv_message_receive_iprmdata'
Warning:net/iucv/iucv.c:1856No description found for return value of 'iucv_init'
Warning:net/iucv/iucv.c:691No description found for return value of 'iucv_sever_pathid'
Warning:net/iucv/iucv.c:1099No description found for return value of 'iucv_message_receive_iprmdata'
Warning:net/iucv/iucv.c:1856No description found for return value of 'iucv_init'
Warning:net/iucv/af_iucv.c:131No description found for return value of 'iucv_msg_length'
Warning:net/iucv/af_iucv.c:150No description found for return value of 'iucv_sock_in_state'
Warning:net/iucv/af_iucv.c:163No description found for return value of 'iucv_below_msglim'
Warning:net/iucv/af_iucv.c:889No description found for return value of 'iucv_send_iprm'
Warning:net/iucv/af_iucv.c:131No description found for return value of 'iucv_msg_length'
Warning:net/iucv/af_iucv.c:150No description found for return value of 'iucv_sock_in_state'
Warning:net/iucv/af_iucv.c:163No description found for return value of 'iucv_below_msglim'
Warning:net/iucv/af_iucv.c:889No description found for return value of 'iucv_send_iprm'
Quoted 1 line
Our team will fix those, unless you want to add them to this patch.
Please go ahead with those fixes.
Thanks.
Signature · 1 line
~Randy
Jakub Kicinski
maintainerQuoted 3 lines · On Mon, 2 Feb 2026 23:52:48 -0800 Randy Dunlap wrote:
- *
iucv_path_quiesced
+ *iucv_path_quiesced-Process connection quiesced work item.
+ *
AI spotted missing space between - and Process
fixed when applying, thanks!
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Hello:
This patch was applied to netdev/net-next.git (main) by Jakub Kicinski <[email protected]>:
Quoted 9 lines · On Mon, 2 Feb 2026 23:52:48 -0800 you wrote:
Fix numerous (many) kernel-doc warnings in iucv.[ch]:
- convert function documentation comments to a common (kernel-doc) look, even for static functions (without "/**")
- use matching parameter and parameter description names
- use better wording in function descriptions (Jakub & AI)
- remove duplicate kernel-doc comments from the header file (Jakub)[...]
Here is the summary with links:
- [v3,net-next] net/iucv: clean up iucv kernel-doc warnings
https://git.kernel.org/netdev/net-next/c/a34b0e4e21d6
You are awesome, thank you!
Signature · 2 lines
Deet-doot-dot, I am a bot. https://korg.docs.kernel.org/patchwork/pwbot.html