rcu: Fix description of kvfree_rcu()
Uladzislau Rezki (Sony)
maintainerPATCH v2 1/1 rcu: Fix description of kvfree_rcu()
The passed "ptr" parameter might be wrongly interpreted therefore rephrase it to prevent people from being confused.
--- include/linux/rcupdate.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/rcupdate.h +1 -1
@@ -924,7 +924,7 @@ static inline notrace void rcu_read_unlock_sched_notrace(void)* * kvfree_rcu(ptr); * -* where @ptr is a pointer to kvfree(). +* where @ptr is the pointer to be freed by kvfree(). * * Please note, head-less way of freeing is permitted to * use from a context that has to follow might_sleep()
Signature · 1 line
2.30.2
Paul E. McKenney
maintainerQuoted 5 lines · Uladzislau Rezki (Sony)
The passed "ptr" parameter might be wrongly interpreted therefore rephrase it to prevent people from being confused.
Reported-by Steven Rostedt <[email protected]>Signed-off-by Uladzislau Rezki (Sony) <[email protected]>
Thank you both! Queued with wordsmithed commit log as shown below, so please check to see if I messed anything up.
Thanx, Paul
------------------------------------------------------------------------
commit 59ef229194204b023bb7bde95ce769d4e94a4b62
Author: Uladzislau Rezki (Sony) <[email protected]> Date: Wed Dec 1 10:20:53 2021 +0100
rcu: Fix description of kvfree_rcu()
The kvfree_rcu() header comment's description of the "ptr" parameter is unclear, therefore rephrase it to make it clear that it is a pointer to the memory to eventually be passed to kvfree().
include/linux/rcupdate.h +1 -1
@@ -924,7 +924,7 @@ static inline notrace void rcu_read_unlock_sched_notrace(void)* * kvfree_rcu(ptr); * -* where @ptr is a pointer to kvfree(). +* where @ptr is the pointer to be freed by kvfree(). * * Please note, head-less way of freeing is permitted to * use from a context that has to follow might_sleep()