public inbox for netdev@vger.kernel.org
 help / color / mirror / Atom feed
From: Alexandra Winter <wintera@linux.ibm.com>
To: Randy Dunlap <rdunlap@infradead.org>, netdev@vger.kernel.org
Cc: Thorsten Winkler <twinkler@linux.ibm.com>,
	linux-s390@vger.kernel.org,
	"David S. Miller" <davem@davemloft.net>,
	Eric Dumazet <edumazet@google.com>,
	Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
	Simon Horman <horms@kernel.org>
Subject: Re: [PATCH v2 net-next] net/iucv: clean up iucv kernel-doc warnings
Date: Mon, 2 Feb 2026 16:35:31 +0100	[thread overview]
Message-ID: <2ddf6abd-d10c-4d75-8f84-0fd1ccb5435c@linux.ibm.com> (raw)
In-Reply-To: <20260201072309.222155-1-rdunlap@infradead.org>



On 01.02.26 08:23, Randy Dunlap wrote:
> Fix numerous (many) kernel-doc warnings in iucv.[ch]:
> 
> - remove kernel-doc on static functions in iucv.c
> - convert function documentation comments to a common (kernel-doc) look,
>   even for static functions (without "/**")
> - use matching parameter and parameter description names
> 
> 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".
> 
> Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
> ---

Thank you very much for your effort Randy.
FYI: I had to use 'scripts/kernel-doc.py -none -Wall include/net/iucv/*' to see the warnings.



> v2:
> - correct verbs in descriptions of 2 functions (Jakub)
> - removed duplicate kernel-doc comments from the header file (Jakub)
> 
> Cc: Alexandra Winter <wintera@linux.ibm.com>
> Cc: Thorsten Winkler <twinkler@linux.ibm.com>
> Cc: linux-s390@vger.kernel.org
> Cc: "David S. Miller" <davem@davemloft.net>
> Cc: Eric Dumazet <edumazet@google.com>
> Cc: Jakub Kicinski <kuba@kernel.org>
> Cc: Paolo Abeni <pabeni@redhat.com>
> Cc: Simon Horman <horms@kernel.org>
> 
>  include/net/iucv/iucv.h |  209 ------------------------------
>  net/iucv/iucv.c         |  259 ++++++++++++++++++--------------------
>  2 files changed, 128 insertions(+), 340 deletions(-)
> 
> --- linux-next-20260130.orig/include/net/iucv/iucv.h
> +++ linux-next-20260130/include/net/iucv/iucv.h
> @@ -70,7 +70,7 @@
>  #define IUCV_IPLOCAL	0x01
>  
>  /*
> - * iucv_array : Defines buffer array.
> + * iucv_array - Defines buffer array.

Did that create a kernel doc warning? It's a struct, not a function.
I propose
+ * struct iucv_array
like other structs in this file.

[...]

> @@ -757,13 +742,12 @@ static void iucv_cleanup_queue(void)
>  }
>
>  /**
> - * iucv_register:
> + * iucv_register - Registers a driver with IUCV.
> + *
>   * @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
> + * 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)

Before this one, you changed /** to /*
after this one you left /**
That's a bit inconsistent.





All the fixes look good to me. And they get rid of the mentioned warnings.
I appreciate your approach to use the existing wording, though it may not
be according to the latest style guidelines.

Reviewed-by: Alexandra Winter <wintera@linux.ibm.com>







  reply	other threads:[~2026-02-02 15:35 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-02-01  7:23 [PATCH v2 net-next] net/iucv: clean up iucv kernel-doc warnings Randy Dunlap
2026-02-02 15:35 ` Alexandra Winter [this message]
2026-02-02 22:07   ` Randy Dunlap
2026-02-03  9:39     ` Alexandra Winter
2026-02-06  7:01   ` Randy Dunlap

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2ddf6abd-d10c-4d75-8f84-0fd1ccb5435c@linux.ibm.com \
    --to=wintera@linux.ibm.com \
    --cc=davem@davemloft.net \
    --cc=edumazet@google.com \
    --cc=horms@kernel.org \
    --cc=kuba@kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=rdunlap@infradead.org \
    --cc=twinkler@linux.ibm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox