From: Shaokun Zhang Date: Wed, 24 Mar 2021 05:40:40 +0000 (+0800) Subject: locking/mutex: Remove repeated declaration X-Git-Tag: v5.13-rc1~121^2~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8af856d18bfbe89676ade38caa2a5d06f75f211d;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Ingo Molnar Acked-by: Waiman Long Link: https://lore.kernel.org/r/1616564440-61318-1-git-send-email-zhangshaokun@hisilicon.com --- diff --git a/include/linux/mutex.h b/include/linux/mutex.h index 0cd631a197276..e7a126796937a 100644 --- a/include/linux/mutex.h +++ b/include/linux/mutex.h @@ -20,6 +20,7 @@ #include #include +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;