Thread (5 messages) 5 messages, 5 authors, 2014-06-07

Re: [PATCH] list: Fix order of arguments for hlist_add_after(_rcu)

From: Andrew Morton <akpm@linux-foundation.org>
Date: 2014-06-07 06:45:01
Also in: batman, bridge, dri-devel, linux-fsdevel, lkml

On Fri, 6 Jun 2014 10:22:51 -0700 "Paul E. McKenney" [off-list ref] wrote:
On Fri, Jun 06, 2014 at 03:56:52PM +0000, David Laight wrote:
quoted
From: Behalf Of Ken Helias
quoted
All other add functions for lists have the new item as first argument and the
position where it is added as second argument. This was changed for no good
reason in this function and makes using it unnecessary confusing.

Also the naming of the arguments in hlist_add_after was confusing. It was
changed to use the same names as hlist_add_after_rcu.
...
quoted
-static inline void hlist_add_after_rcu(struct hlist_node *prev,
-				       struct hlist_node *n)
+static inline void hlist_add_after_rcu(struct hlist_node *n,
+				       struct hlist_node *prev)
It is rather a shame that the change doesn't generate a compilation
error for old source files.
I am also a bit concerned by this.
yup.  hlist_add_behind()?
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help