aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/include/linux/rwsem.h
diff options
context:
space:
mode:
authorGuchun Chen <guchun.chen@amd.com>2022-01-14 16:37:42 +0800
committerChristian König <christian.koenig@amd.com>2022-01-14 11:08:37 +0100
commitd72d84aea4d57a735d8cfbade32ed323f47a5941 (patch)
tree07d828e3e9f0bc8d01abb0fb6098d6f18ee69a59 /include/linux/rwsem.h
parentdrm/bridge: dw-mipi-dsi: Switch to atomic operations (diff)
downloadwireguard-linux-d72d84aea4d57a735d8cfbade32ed323f47a5941.tar.xz
wireguard-linux-d72d84aea4d57a735d8cfbade32ed323f47a5941.zip
locking/rwsem: drop redundant semicolon of down_write_nest_lock
Otherwise, braces are needed when using it. Signed-off-by: Guchun Chen <guchun.chen@amd.com> Acked-by: Christian König <christian.koenig@amd.com> Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://patchwork.freedesktop.org/patch/msgid/20220114083742.6219-1-guchun.chen@amd.com Signed-off-by: Christian König <christian.koenig@amd.com>
Diffstat (limited to 'include/linux/rwsem.h')
-rw-r--r--include/linux/rwsem.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/rwsem.h b/include/linux/rwsem.h
index f9348769e558..efa5c324369a 100644
--- a/include/linux/rwsem.h
+++ b/include/linux/rwsem.h
@@ -230,7 +230,7 @@ extern void _down_write_nest_lock(struct rw_semaphore *sem, struct lockdep_map *
do { \
typecheck(struct lockdep_map *, &(nest_lock)->dep_map); \
_down_write_nest_lock(sem, &(nest_lock)->dep_map); \
-} while (0);
+} while (0)
/*
* Take/release a lock when not the owner will release it.