summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-10-11 19:17:39 +0200
committerPaul E. McKenney <paulmck@linux.vnet.ibm.com>2013-12-12 21:19:08 +0100
commitac7c8e3dd2ed6489be1f6bc722029fb4855c3a34 (patch)
tree40b1cd4b40f3fee8104cbf666cf930b24531cc6d /drivers/net
parentLinux 3.13-rc2 (diff)
downloadlinux-ac7c8e3dd2ed6489be1f6bc722029fb4855c3a34.tar.xz
linux-ac7c8e3dd2ed6489be1f6bc722029fb4855c3a34.zip
rcu: Add comment on evaluate-once properties of rcu_assign_pointer().
The rcu_assign_pointer() macro, as with most cpp macros, must not evaluate its argument more than once. And it in fact does not. But this might not be obvious to the casual observer, because one of the arguments appears no less than three times. However, but one expansion is only visible to sparse (__CHECKER__), and one lives inside a typeof (where it will never be evaluated), so this is in fact safe. This commit therefore adds a comment making this explicit. Reported-by: Josh Triplett <josh@joshtriplett.org> Signed-off-by: Paul E. McKenney <paulmck@linux.vnet.ibm.com> Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Diffstat (limited to 'drivers/net')
0 files changed, 0 insertions, 0 deletions