moduleparam: fix kerneldoc
PATCH v2 1/1 moduleparam: fix kerneldoc
Document missing @args in xxx_param_cb().
Signed-off-by Fabien Dessenne <[email protected]>
---
Changes since v1: do not replace 'lvalue' with 'value'
--- include/linux/moduleparam.h | 2 ++ 1 file changed, 2 insertions(+)
include/linux/moduleparam.h +2 -0
@@ -160,6 +160,7 @@ struct kparam_array* module_param_cb - general callback for a module/cmdline parameter * @name: a valid C identifier which is the parameter name. * @ops: the set & get operations for this parameter. +* @args: args for @ops * @perm: visibility in sysfs. * * The ops can have NULL set or get functions.
@@ -176,6 +177,7 @@ struct kparam_array* to be evaluated before certain initcall level * @name: a valid C identifier which is the parameter name. * @ops: the set & get operations for this parameter. +* @args: args for @ops * @perm: visibility in sysfs. * * The ops can have NULL set or get functions.
Signature · 1 line
2.7.4
Quoted 14 lines · Fabien Dessenne
Document missing @args in
xxx_param_cb().Signed-off-by Fabien Dessenne <[email protected]>---
Changes since v1: do not replace 'lvalue' with 'value'--- include/linux/moduleparam.h | 2 ++ 1 file changed, 2 insertions(+)include/linux/moduleparam.h +0
-0
include/linux/moduleparam.h struct kparam_array · line 163
Quoted 4 lines
include/linux/moduleparam.h +1
-0@@ -160,6 +160,7 @@ struct kparam_array* module_param_cb - general callback for a module/cmdline parameter * @name: a valid C identifier which is the parameter name. * @ops: the set & get operations for this parameter. +* @args: args for @ops
should be @arg:
include/linux/moduleparam.h struct kparam_array · line 180
Quoted 8 lines
include/linux/moduleparam.h +1
-0* @perm: visibility in sysfs. * * The ops can have NULL set or get functions. @@ -176,6 +177,7 @@ struct kparam_array* to be evaluated before certain initcall level * @name: a valid C identifier which is the parameter name. * @ops: the set & get operations for this parameter. +* @args: args for @ops
should be @arg:
include/linux/moduleparam.h struct kparam_array · line 166
Quoted 4 lines
include/linux/moduleparam.h +0
-0* @perm: visibility in sysfs. * * The ops can have NULL set or get functions.
and @level needs to be documented here also.
I tested this patch with
$ ./scripts/kernel-doc -none -function module_param_cb include/linux/moduleparam.h
scripts/kernel-doc does not like this line:
* <level>_param_cb - general callback for a module/cmdline parameter
It needs to match the macro name __level_param_cb.
Signature · 1 line
~Randy