diff mbox series

[net,07/12] inet: frags: remove kernel-doc comment marker

Message ID 20230710230312.31197-8-rdunlap@infradead.org (mailing list archive)
State Superseded
Delegated to: Netdev Maintainers
Headers show
Series net: fix kernel-doc problems in include/net/ | expand

Checks

Context Check Description
netdev/series_format success Posting correctly formatted
netdev/tree_selection success Clearly marked for net
netdev/fixes_present success Fixes tag present in non-next series
netdev/header_inline success No static functions without inline keyword in header files
netdev/build_32bit success Errors and warnings before: 5688 this patch: 5688
netdev/cc_maintainers success CCed 6 of 6 maintainers
netdev/build_clang success Errors and warnings before: 2335 this patch: 2335
netdev/verify_signedoff success Signed-off-by tag matches author and committer
netdev/deprecated_api success None detected
netdev/check_selftest success No net selftest shell script
netdev/verify_fixes success Fixes tag looks correct
netdev/build_allmodconfig_warn success Errors and warnings before: 5933 this patch: 5933
netdev/checkpatch success total: 0 errors, 0 warnings, 0 checks, 8 lines checked
netdev/kdoc success Errors and warnings before: 2 this patch: 0
netdev/source_inline success Was 0 now: 0

Commit Message

Randy Dunlap July 10, 2023, 11:03 p.m. UTC
Change an errant kernel-doc comment marker (/**) to a regular
comment to prevent a kernel-doc warning.

inet_frag.h:33: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst

Fixes: 1ab1934ed80a ("inet: frags: enum the flag definitions and add descriptions")
Signed-off-by: Randy Dunlap <rdunlap@infradead.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: Nikolay Aleksandrov <razor@blackwall.org>
---
 include/net/inet_frag.h |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Jakub Kicinski July 12, 2023, 3:34 a.m. UTC | #1
On Mon, 10 Jul 2023 16:03:07 -0700 Randy Dunlap wrote:
> -/**
> +/*
>   * fragment queue flags

Can we do:

	enum: fragment queue flags

instead? This seems to get accepted by ./scripts/kernel-doc and it's
nice to keep the "syntax" highlight of the comment, IMHO.
Randy Dunlap July 12, 2023, 3:48 a.m. UTC | #2
On 7/11/23 20:34, Jakub Kicinski wrote:
> On Mon, 10 Jul 2023 16:03:07 -0700 Randy Dunlap wrote:
>> -/**
>> +/*
>>   * fragment queue flags
> 
> Can we do:
> 
> 	enum: fragment queue flags
> 
> instead? This seems to get accepted by ./scripts/kernel-doc and it's
> nice to keep the "syntax" highlight of the comment, IMHO.

That's not quite kernel-doc syntax but we don't have syntax for an
anonymous enum. But you are correct, kernel-doc isn't complaining
about it, so OK, I can send a v2.

thanks.
diff mbox series

Patch

diff -- a/include/net/inet_frag.h b/include/net/inet_frag.h
--- a/include/net/inet_frag.h
+++ b/include/net/inet_frag.h
@@ -28,7 +28,7 @@  struct fqdir {
 	struct llist_node	free_list;
 };
 
-/**
+/*
  * fragment queue flags
  *
  * @INET_FRAG_FIRST_IN: first fragment has arrived