Skip to contentSkip to conversation

kernel/notifier.c: fix doc warnings

PATCH New Baokun Li 1 participant 1 message Jun 10, 2021

lore
Share & tools
lore

Baokun Li

author
#0 lore raw

PATCH 1/1 kernel/notifier.c: fix doc warnings

Fixes the following W=1 kernel build warning(s):

kernel/notifier.c:67: warning: Excess function
parameter 'returns' description in 'notifier_call_chain'
kernel/notifier.c:115: warning: Function parameter or
member 'v' not described in 'notifier_call_chain_robust'

---
 kernel/notifier.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
kernel/notifier.c +2 -2
index 1b019cbca594..e776e65751c2 100644
@@ -58,7 +58,7 @@ static int notifier_chain_unregister(struct notifier_block **nl,
  *			value of this parameter is -1.
  *	@nr_calls:	Records the number of notifications sent. Don't care
  *			value of this field is NULL.
- *	@returns:	notifier_call_chain returns the value returned by the
+ *	returns:	notifier_call_chain returns the value returned by the
  *			last notifier function called.
  */
 static int notifier_call_chain(struct notifier_block **nl,
@@ -101,7 +101,7 @@ NOKPROBE_SYMBOL(notifier_call_chain);
  * @val_up:	Value passed unmodified to the notifier function
  * @val_down:	Value passed unmodified to the notifier function when recovering
  *              from an error on @val_up
- * @v		Pointer passed unmodified to the notifier function
+ * @v:		Pointer passed unmodified to the notifier function
  *
  * NOTE:	It is important the @nl chain doesn't change between the two
  *		invocations of notifier_call_chain() such that we visit the
Signature · 1 line
2.31.1