linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] moduleparam: fix kerneldoc
@ 2019-11-29 15:39 Fabien Dessenne
  2019-11-29 21:40 ` Randy Dunlap
  0 siblings, 1 reply; 2+ messages in thread
From: Fabien Dessenne @ 2019-11-29 15:39 UTC (permalink / raw)
  To: Jessica Yu, Alexey Gladkov, Zhenzhong Duan,
	Gleb Fotengauer-Malinovskiy, Randy Dunlap, linux-kernel
  Cc: Fabien Dessenne

Document missing @args in xxx_param_cb().

Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
---
Changes since v1: do not replace 'lvalue' with 'value'
---
 include/linux/moduleparam.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
index e5c3e23..5215198 100644
--- a/include/linux/moduleparam.h
+++ b/include/linux/moduleparam.h
@@ -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.
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] moduleparam: fix kerneldoc
  2019-11-29 15:39 [PATCH v2] moduleparam: fix kerneldoc Fabien Dessenne
@ 2019-11-29 21:40 ` Randy Dunlap
  0 siblings, 0 replies; 2+ messages in thread
From: Randy Dunlap @ 2019-11-29 21:40 UTC (permalink / raw)
  To: Fabien Dessenne, Jessica Yu, Alexey Gladkov, Zhenzhong Duan,
	Gleb Fotengauer-Malinovskiy, linux-kernel

On 11/29/19 7:39 AM, Fabien Dessenne wrote:
> Document missing @args in xxx_param_cb().
> 
> Signed-off-by: Fabien Dessenne <fabien.dessenne@st.com>
> ---
> Changes since v1: do not replace 'lvalue' with 'value'
> ---
>  include/linux/moduleparam.h | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/include/linux/moduleparam.h b/include/linux/moduleparam.h
> index e5c3e23..5215198 100644
> --- a/include/linux/moduleparam.h
> +++ b/include/linux/moduleparam.h
> @@ -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:

>   * @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:

>   * @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.

-- 
~Randy


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-11-29 21:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-11-29 15:39 [PATCH v2] moduleparam: fix kerneldoc Fabien Dessenne
2019-11-29 21:40 ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).