Skip to contentSkip to conversation

rculist.h: docu: fix wrong function summary

PATCH Applied Philipp Stanner 2 participants 2 messages Sep 20, 2023 RCU

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 rculist.h: docu: fix wrong function summary

The brief summary in the docstring for function list_next_or_null_rcu() states that the function is supposed to provide the "first" member of a list, whereas in truth it returns the next member.

Change the docstring so it describes what the function actually does.

---
 include/linux/rculist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rculist.h +1 -1
index 4837d8892691..fd0ed1550a7c 100644
@@ -355,7 +355,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list,
 })
 
 /**
- * list_next_or_null_rcu - get the first element from a list
+ * list_next_or_null_rcu - get the next element from a list
  * @head:	the head for the list.
  * @ptr:        the list head to take the next element from.
  * @type:       the type of the struct this is embedded in.
Signature · 1 line
2.41.0
maintainer Applied
#1 lore raw
Quoted 7 lines · Philipp Stanner

The brief summary in the docstring for function list_next_or_null_rcu() states that the function is supposed to provide the "first" member of a list, whereas in truth it returns the next member.

Change the docstring so it describes what the function actually does.

Queued and pushed, thank you!

Thanx, Paul

Quoted 20 lines
---
 include/linux/rculist.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rculist.h +1 -1
index 4837d8892691..fd0ed1550a7c 100644
@@ -355,7 +355,7 @@ static inline void list_splice_tail_init_rcu(struct list_head *list,
 })
 
 /**
- * list_next_or_null_rcu - get the first element from a list
+ * list_next_or_null_rcu - get the next element from a list
  * @head:	the head for the list.
  * @ptr:        the list head to take the next element from.
  * @type:       the type of the struct this is embedded in.
Signature · 1 line
2.41.0