Skip to content

Commit f18e712

Browse files
rddunlapummakynes
authored andcommitted
linux/netfilter.h: fix kernel-doc warnings
kernel-doc does not support DECLARE_PER_CPU(), so don't mark it with kernel-doc notation. One comment block is not kernel-doc notation, so just use "/*" to begin the comment. Quietens these warnings: netfilter.h:493: warning: Function parameter or member 'bool' not described in 'DECLARE_PER_CPU' netfilter.h:493: warning: Function parameter or member 'nf_skb_duplicated' not described in 'DECLARE_PER_CPU' netfilter.h:493: warning: expecting prototype for nf_skb_duplicated(). Prototype was for DECLARE_PER_CPU() instead netfilter.h:496: warning: This comment starts with '/**', but isn't a kernel-doc comment. Refer Documentation/doc-guide/kernel-doc.rst * Contains bitmask of ctnetlink event subscribers, if any. Fixes: e7c8899 ("netfilter: move tee_active to core") Fixes: fdf6491 ("netfilter: ctnetlink: make event listener tracking global") Signed-off-by: Randy Dunlap <[email protected]> Reviewed-by: Simon Horman <[email protected]> Signed-off-by: Pablo Neira Ayuso <[email protected]>
1 parent ff0a3a7 commit f18e712

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

include/linux/netfilter.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ struct nfnl_ct_hook {
481481
};
482482
extern const struct nfnl_ct_hook __rcu *nfnl_ct_hook;
483483

484-
/**
484+
/*
485485
* nf_skb_duplicated - TEE target has sent a packet
486486
*
487487
* When a xtables target sends a packet, the OUTPUT and POSTROUTING
@@ -492,7 +492,7 @@ extern const struct nfnl_ct_hook __rcu *nfnl_ct_hook;
492492
*/
493493
DECLARE_PER_CPU(bool, nf_skb_duplicated);
494494

495-
/**
495+
/*
496496
* Contains bitmask of ctnetlink event subscribers, if any.
497497
* Can't be pernet due to NETLINK_LISTEN_ALL_NSID setsockopt flag.
498498
*/

0 commit comments

Comments
 (0)