sysctl: fix kernel-doc format warning
Subsystems (2)
PATCH 1/1 sysctl: fix kernel-doc format warning
Describe the "type" struct member using '@type' to avoid a kernel-doc warning:
Warning: include/linux/sysctl.h:178 Incorrect use of kernel-doc format:
* enum type - Enumeration to differentiate between ctl target types
---
Cc: Luis Chamberlain <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Joel Granados <[email protected]>
Cc: [email protected]
--- include/linux/sysctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sysctl.h +1 -1
@@ -176,7 +176,7 @@ struct ctl_table_header {struct ctl_node *node;struct hlist_head inodes;/* head for proc_inode->sysctl_inodes */ /** -* enum type - Enumeration to differentiate between ctl target types +* @type: Enumeration to differentiate between ctl target types * @SYSCTL_TABLE_TYPE_DEFAULT: ctl target with no special considerations * @SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY: Used to identify a permanently * empty directory target to serve
Joel Granados
maintainerQuoted 20 lines · Randy Dunlap
Describe the "type" struct member using '@type' to avoid a kernel-doc warning:
Warning:
include/linux/sysctl.h:178Incorrect use of kernel-doc format:
* enum type - Enumeration to differentiate between ctl target typesFixes 2f2665c13af4 ("sysctl: replace child with an enumeration")Signed-off-by Randy Dunlap <[email protected]>---
Cc: Luis Chamberlain <[email protected]>
Cc: Kees Cook <[email protected]>
Cc: Joel Granados <[email protected]>
Cc: [email protected]--- include/linux/sysctl.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/sysctl.h struct ctl_table_header { · line 182
Quoted 8 lines
include/linux/sysctl.h +1
-1@@ -176,7 +176,7 @@ struct ctl_table_header {struct ctl_node *node;struct hlist_head inodes;/* head for proc_inode->sysctl_inodes */ /** -* enum type - Enumeration to differentiate between ctl target types +* @type: Enumeration to differentiate between ctl target types * @SYSCTL_TABLE_TYPE_DEFAULT: ctl target with no special considerations * @SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY: Used to identify a permanently * empty directory target to serve
Yes! I'll push it through with a little tweek by putting it together with the general documentation for the ctl_table_header. That is the way it is supposed to be (according to Documentation/doc-guide/kernel-doc.rst)
Best
Signature · 1 line
Joel Granados
Joel Granados
maintainerQuoted 3 lines · Joel Granados
Quoted 2 lines · Randy Dunlap
Describe the "type" struct member using '@type' to avoid a kernel-doc warning:
...
Quoted 11 lines
Review
Quoted 6 lines
(quoted diff) +1
-1/** - * enum type - Enumeration to differentiate between ctl target types + * @type: Enumeration to differentiate between ctl target types * @SYSCTL_TABLE_TYPE_DEFAULT: ctl target with no special considerations * @SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY: Used to identify a permanently * empty directory target to serveYes! I'll push it through with a little tweek by putting it together with the general documentation for the
ctl_table_header. That is the way it is supposed to be (according toDocumentation/doc-guide/kernel-doc.rst)
Quoted 4 lines
Best
Signature · 1 line
Joel Granados
Going to look something like this
sysctl: fix kernel-doc format warning
Describe the "type" struct member using '@type' and move it together with the rest of the doc for ctl_table_header to avoid a kernel-doc warning:
Warning: include/linux/sysctl.h:178 Incorrect use of kernel-doc format:
* enum type - Enumeration to differentiate between ctl target types
include/linux/sysctl.h +5 -7
@@ -156,7 +156,12 @@ struct ctl_node {* @nreg: When nreg drops to 0 the ctl_table_header will be unregistered. * @rcu: Delays the freeing of the inode. Introduced with "unfuck proc_sysctl ->d_compare()" * +* @type: Enumeration to differentiate between ctl target types +* @type.SYSCTL_TABLE_TYPE_DEFAULT: ctl target with no special considerations +* @type.SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY: Identifies a permanently empty dir +* target to serve as a mount point */ + struct ctl_table_header { union { struct {
@@ -175,13 +180,6 @@ struct ctl_table_header {struct ctl_dir *parent;struct ctl_node *node;struct hlist_head inodes;/* head for proc_inode->sysctl_inodes */ -/** -* enum type - Enumeration to differentiate between ctl target types -* @SYSCTL_TABLE_TYPE_DEFAULT: ctl target with no special considerations -* @SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY: Used to identify a permanently -* empty directory target to serve -* as mount point. -*/ enum {SYSCTL_TABLE_TYPE_DEFAULT ,SYSCTL_TABLE_TYPE_PERMANENTLY_EMPTY ,
~
Best
Signature · 1 line
Joel Granados