]> git.karo-electronics.de Git - linux-beck.git/commit
rcu: Remove return value from RCU_INIT_POINTER()
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Wed, 16 May 2012 22:42:30 +0000 (15:42 -0700)
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>
Mon, 2 Jul 2012 19:34:23 +0000 (12:34 -0700)
commitd1b88eb9e3bccaa43fb5d1bde1cbe210b3434731
tree0cb3f4f8b8b9234c306a738d41233db9d8ee709c
parentd36cc701b28983ea2c8d80afe68aae5452aea3bf
rcu: Remove return value from RCU_INIT_POINTER()

The return value from RCU_INIT_POINTER() is not used, and using it
would be quite ugly, for example:

q = RCU_INIT_POINTER(global_p, p);

To prevent this sort of ugliness from appearing, this commit wraps
RCU_INIT_POINTER() in a do-while loop.

Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Acked-by: David Howells <dhowells@redhat.com>
include/linux/rcupdate.h