Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

locking/mutex: Remove repeated declaration

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

authored by

Shaokun Zhang and committed by
Ingo Molnar
8af856d1 e2db7592

+1 -3
+1 -3
include/linux/mutex.h
··· 20 20 #include <linux/osq_lock.h> 21 21 #include <linux/debug_locks.h> 22 22 23 + struct ww_class; 23 24 struct ww_acquire_ctx; 24 25 25 26 /* ··· 65 64 struct lockdep_map dep_map; 66 65 #endif 67 66 }; 68 - 69 - struct ww_class; 70 - struct ww_acquire_ctx; 71 67 72 68 struct ww_mutex { 73 69 struct mutex base;