mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-30 14:19:16 +00:00
rculist: Describe variadic macro argument in a Sphinx-compatible way
Without this patch, Sphinx shows "variable arguments" as the description of the cond argument, rather than the intended description, and prints the following warnings: ./include/linux/rculist.h:374: warning: Excess function parameter 'cond' description in 'list_for_each_entry_rcu' ./include/linux/rculist.h:651: warning: Excess function parameter 'cond' description in 'hlist_for_each_entry_rcu' Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Acked-by: Joel Fernandes (Google) <joel@joelfernandes.org> Signed-off-by: Paul E. McKenney <paulmck@kernel.org>
This commit is contained in:
parent
e42617b825
commit
f452ee096d
1 changed files with 2 additions and 2 deletions
|
@ -361,7 +361,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list,
|
||||||
* @pos: the type * to use as a loop cursor.
|
* @pos: the type * to use as a loop cursor.
|
||||||
* @head: the head for your list.
|
* @head: the head for your list.
|
||||||
* @member: the name of the list_head within the struct.
|
* @member: the name of the list_head within the struct.
|
||||||
* @cond: optional lockdep expression if called from non-RCU protection.
|
* @cond...: optional lockdep expression if called from non-RCU protection.
|
||||||
*
|
*
|
||||||
* This list-traversal primitive may safely run concurrently with
|
* This list-traversal primitive may safely run concurrently with
|
||||||
* the _rcu list-mutation primitives such as list_add_rcu()
|
* the _rcu list-mutation primitives such as list_add_rcu()
|
||||||
|
@ -636,7 +636,7 @@ static inline void hlist_add_behind_rcu(struct hlist_node *n,
|
||||||
* @pos: the type * to use as a loop cursor.
|
* @pos: the type * to use as a loop cursor.
|
||||||
* @head: the head for your list.
|
* @head: the head for your list.
|
||||||
* @member: the name of the hlist_node within the struct.
|
* @member: the name of the hlist_node within the struct.
|
||||||
* @cond: optional lockdep expression if called from non-RCU protection.
|
* @cond...: optional lockdep expression if called from non-RCU protection.
|
||||||
*
|
*
|
||||||
* This list-traversal primitive may safely run concurrently with
|
* This list-traversal primitive may safely run concurrently with
|
||||||
* the _rcu list-mutation primitives such as hlist_add_head_rcu()
|
* the _rcu list-mutation primitives such as hlist_add_head_rcu()
|
||||||
|
|
Loading…
Reference in a new issue