Skip to contentSkip to conversation

Fix comment in list.h that refers to nonexistent API

PATCH New Paul E. McKenney 1 participant 1 message Apr 3, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 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 <[email protected]>

---

include/linux/list.h +1 -1
diff -urpN -X dontdiff linux-2.6.12-rc1/include/linux/list.h linux-2.6.12-rc1-bettersk/include/linux/list.h
@@ -692,7 +692,7 @@ static inline void hlist_add_after(struc
  * @member:	the name of the hlist_node within the struct.
  *
  * This list-traversal primitive may safely run concurrently with
- * the _rcu list-mutation primitives such as hlist_add_rcu()
+ * the _rcu list-mutation primitives such as hlist_add_head_rcu()
  * as long as the traversal is guarded by rcu_read_lock().
  */
 #define hlist_for_each_entry_rcu(tpos, pos, head, member)		 \