projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e2db759
)
locking/mutex: Remove repeated declaration
author
Shaokun Zhang
<zhangshaokun@hisilicon.com>
Wed, 24 Mar 2021 05:40:40 +0000
(13:40 +0800)
committer
Ingo Molnar
<mingo@kernel.org>
Thu, 25 Mar 2021 11:02:06 +0000
(12:02 +0100)
Commit
0cd39f4600ed
("locking/seqlock, headers: Untangle the spaghetti monster")
introduces 'struct ww_acquire_ctx' again, remove the repeated declaration and move
the pre-declarations to the top.
Signed-off-by: Shaokun Zhang <zhangshaokun@hisilicon.com>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Waiman Long <longman@redhat.com>
Link:
https://lore.kernel.org/r/1616564440-61318-1-git-send-email-zhangshaokun@hisilicon.com
include/linux/mutex.h
patch
|
blob
|
history
diff --git
a/include/linux/mutex.h
b/include/linux/mutex.h
index 0cd631a19727627243431974f17e7d1ac9d6f747..e7a126796937abce0f103144ccb6cde28b9f9b4a 100644
(file)
--- a/
include/linux/mutex.h
+++ b/
include/linux/mutex.h
@@
-20,6
+20,7
@@
#include <linux/osq_lock.h>
#include <linux/debug_locks.h>
+struct ww_class;
struct ww_acquire_ctx;
/*
@@
-65,9
+66,6
@@
struct mutex {
#endif
};
-struct ww_class;
-struct ww_acquire_ctx;
-
struct ww_mutex {
struct mutex base;
struct ww_acquire_ctx *ctx;