aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/lib/list_debug.c
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-05-16 15:23:45 -0700
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2012-07-02 12:34:22 -0700
commit172708d002e0a2aca032b04fe6f2b8525c29244a (patch)
tree5245232b443036a68ffb2cccdadd797678aeb0c7 /lib/list_debug.c
parentrcu: Add ACCESS_ONCE() to ->qlen accesses (diff)
downloadwireguard-linux-172708d002e0a2aca032b04fe6f2b8525c29244a.tar.xz
wireguard-linux-172708d002e0a2aca032b04fe6f2b8525c29244a.zip
rcu: Add a gcc-style structure initializer for RCU pointers
RCU_INIT_POINTER() returns a value that is never used, and which should be abolished due to terminal ugliness: q = RCU_INIT_POINTER(global_p, p); However, there are two uses that cannot be handled by a do-while formulation because they do gcc-style initialization: RCU_INIT_POINTER(.real_cred, &init_cred), RCU_INIT_POINTER(.cred, &init_cred), This usage is clever, but not necessarily the nicest approach. This commit therefore creates an RCU_POINTER_INITIALIZER() macro that is specifically designed for gcc-style initialization. Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Acked-by: David Howells <dhowells@redhat.com>
Diffstat (limited to 'lib/list_debug.c')
0 files changed, 0 insertions, 0 deletions