kernel/smp: fix all kernel-doc warnings
PATCH 1/1 kernel/smp: fix all kernel-doc warnings
Fix the following warnings:
kernel/smp.c:1189: warning: cannot understand function prototype: 'struct smp_call_on_cpu_struct ' kernel/smp.c:788: warning: No description found for return value of 'smp_call_function_single_async' kernel/smp.c:990: warning: Function parameter or member 'wait' not described in 'smp_call_function_many' kernel/smp.c:990: warning: Excess function parameter 'flags' description in 'smp_call_function_many' kernel/smp.c:1198: warning: Function parameter or member 'work' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'done' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'func' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'data' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'ret' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'cpu' not described in 'smp_call_on_cpu_struct'
--- kernel/smp.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
kernel/smp.c +11 -3
@@ -764,7 +764,7 @@ int smp_call_function_single(int cpu, smEXPORT_SYMBOL (smp_call_function_single);/** -* smp_call_function_single_async(): Run an asynchronous function on a +* smp_call_function_single_async() - Run an asynchronous function on a * specific CPU. * @cpu: The CPU to run on. * @csd: Pre-allocated and setup data structure
@@ -783,6 +783,8 @@ EXPORT_SYMBOL(smp_call_function_single);* * NOTE: Be careful, there is unfortunately no current debugging facility to * validate the correctness of this serialization. +* +* Return: %0 on success or negative errno value on error */ int smp_call_function_single_async (int cpu,struct __call_single_data *csd) {
@@ -974,7 +976,7 @@ static void smp_call_function_many_cond(* @mask: The set of cpus to run on (only runs on online subset). * @func: The function to run. This must be fast and non-blocking. * @info: An arbitrary pointer to pass to the function. -* @flags: Bitmask that controls the operation. If %SCF_WAIT is set, wait +* @wait: Bitmask that controls the operation. If %SCF_WAIT is set, wait * (atomically) until function has completed on other CPUs. If * %SCF_RUN_LOCAL is set, the function will also be run locally * if the local CPU is set in the @cpumask.
@@ -1180,7 +1182,13 @@ void wake_up_all_idle_cpus(void)EXPORT_SYMBOL_GPL (wake_up_all_idle_cpus);/** -* smp_call_on_cpu - Call a function on a specific cpu +* struct smp_call_on_cpu_struct - Call a function on a specific CPU +* @work: &work_struct +* @done: &completion to signal +* @func: function to call +* @data: function's data argument +* @ret: return value from @func +* @cpu: target CPU (%-1 for any CPU) * * Used to call a function on a specific cpu and wait for it to return. * Optionally make sure the call is done on a specified physical cpu via vcpu
[tip: smp/core] smp: Fix all kernel-doc warnings
The following commit has been merged into the smp/core branch of tip:
The following commit has been merged into the smp/core branch of tip:
Commit-ID: 49b3bd213a9f3d685784913c255c6a2cb3d1fcce Gitweb: https://git.kernel.org/tip/49b3bd213a9f3d685784913c255c6a2cb3d1fcce Author: Randy Dunlap <[email protected]> AuthorDate: Tue, 10 Aug 2021 15:50:51 -07:00 Committer: Thomas Gleixner <[email protected]> CommitterDate: Wed, 11 Aug 2021 14:47:16 +02:00
smp: Fix all kernel-doc warnings
Fix the following warnings:
kernel/smp.c:1189: warning: cannot understand function prototype: 'struct smp_call_on_cpu_struct ' kernel/smp.c:788: warning: No description found for return value of 'smp_call_function_single_async' kernel/smp.c:990: warning: Function parameter or member 'wait' not described in 'smp_call_function_many' kernel/smp.c:990: warning: Excess function parameter 'flags' description in 'smp_call_function_many' kernel/smp.c:1198: warning: Function parameter or member 'work' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'done' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'func' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'data' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'ret' not described in 'smp_call_on_cpu_struct' kernel/smp.c:1198: warning: Function parameter or member 'cpu' not described in 'smp_call_on_cpu_struct'
--- kernel/smp.c | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-)
kernel/smp.c +11 -3
@@ -764,7 +764,7 @@ int smp_call_function_single(int cpu, smp_call_func_t func, void *info,EXPORT_SYMBOL (smp_call_function_single);/** -* smp_call_function_single_async(): Run an asynchronous function on a +* smp_call_function_single_async() - Run an asynchronous function on a * specific CPU. * @cpu: The CPU to run on. * @csd: Pre-allocated and setup data structure
@@ -783,6 +783,8 @@ EXPORT_SYMBOL(smp_call_function_single);* * NOTE: Be careful, there is unfortunately no current debugging facility to * validate the correctness of this serialization. +* +* Return: %0 on success or negative errno value on error */ int smp_call_function_single_async (int cpu,struct __call_single_data *csd) {
@@ -974,7 +976,7 @@ static void smp_call_function_many_cond(const struct cpumask *mask,* @mask: The set of cpus to run on (only runs on online subset). * @func: The function to run. This must be fast and non-blocking. * @info: An arbitrary pointer to pass to the function. -* @flags: Bitmask that controls the operation. If %SCF_WAIT is set, wait +* @wait: Bitmask that controls the operation. If %SCF_WAIT is set, wait * (atomically) until function has completed on other CPUs. If * %SCF_RUN_LOCAL is set, the function will also be run locally * if the local CPU is set in the @cpumask.
@@ -1180,7 +1182,13 @@ void wake_up_all_idle_cpus(void)EXPORT_SYMBOL_GPL (wake_up_all_idle_cpus);/** -* smp_call_on_cpu - Call a function on a specific cpu +* struct smp_call_on_cpu_struct - Call a function on a specific CPU +* @work: &work_struct +* @done: &completion to signal +* @func: function to call +* @data: function's data argument +* @ret: return value from @func +* @cpu: target CPU (%-1 for any CPU) * * Used to call a function on a specific cpu and wait for it to return. * Optionally make sure the call is done on a specified physical cpu via vcpu