Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[PATCH] Fix comment in list.h that refers to nonexistent API

The hlist_for_each_entry_rcu() comment block refers to a nonexistent
hlist_add_rcu() API, needs to change to hlist_add_head_rcu().

Signed-off-by: Paul E. McKenney <paulmck@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by

Paul E. McKenney and committed by
Linus Torvalds
e1ba0dab 29504ff3

+1 -1
+1 -1
include/linux/list.h
··· 692 692 * @member: the name of the hlist_node within the struct. 693 693 * 694 694 * This list-traversal primitive may safely run concurrently with 695 - * the _rcu list-mutation primitives such as hlist_add_rcu() 695 + * the _rcu list-mutation primitives such as hlist_add_head_rcu() 696 696 * as long as the traversal is guarded by rcu_read_lock(). 697 697 */ 698 698 #define hlist_for_each_entry_rcu(tpos, pos, head, member) \