Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp850055pxf; Wed, 24 Mar 2021 18:28:03 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw712iPTfGFjSwp9e8HRARiy6zEU6nS5HEptMJ2RbXQX4+mHxS5fVymQPREz010XfA7acWV X-Received: by 2002:a05:6402:3096:: with SMTP id de22mr6394502edb.141.1616635683388; Wed, 24 Mar 2021 18:28:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616635683; cv=none; d=google.com; s=arc-20160816; b=urxw+2IaC9BJmZtngMJR4etdJndwhoSNojD68UtC8KDb5Lka2CK9YQoRjYOGKxJ9Sq z9BaXOHGojps28vqzFcdtmB/Xnlgio4+up98RJMSNRDGUzPwIpiYGAAID/3T3J7fkM4n bv+WVZz6sOkOlkCVGHQpb/0KYW2TorF820qE1/343OeeDwPRRxqUafgFUxV+tUc+fHI7 qofi1MYQfKHz6B/D9lxlwRdp+knbDeGeafUevOZis7yJ99ATDzWzTpltsGLivTGKpSPH YHz5M02Y2tdEuFe0Dt6YWkKvIlfBngB7nKJ24Eh8+ZOkdhRx1sAmZswwJItZzcqIouI7 ldkQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:robot-unsubscribe :robot-id:message-id:mime-version:references:in-reply-to:cc:subject :to:reply-to:sender:from:dkim-signature:dkim-signature:date; bh=LMTdHXbv8eVj96jtLmRysp8zykl9xBjwUpZgI9zBLjE=; b=j7mhmKlwysX4cP2pbkgwzXpGs0GxV1+OYLc0/yY4RtZiW+FOnUyevuFLtH9yyWdg3t E9XYtYquQpa1aDq4+6GDupwshe1K6T5Qz01Ix+6NFUMQGA6z31wy/F8rQVmzjLpuc3RL HhSSF8xMyVNIABvLOC9vJ2I7VWCu7xzcEAoAGBK6APvHENjmUh/7+uPZ8edJHPFAKpqZ M/2iF4bH7qt1y/6hRCjszc2y99/+a60fk9gQIP3gw/siShi0wKn9wM0CoJ9kab1uAJtN 1CX4/dmM6uleRl/3WVb1jrn/t7hUQcbrFVMRUIvkNW7IhSRW39ulLSDdXiFYZKG0Xup8 RwBA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=esiMV3VM; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si2950489ejw.185.2021.03.24.18.27.40; Wed, 24 Mar 2021 18:28:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=esiMV3VM; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235874AbhCXHWt (ORCPT + 99 others); Wed, 24 Mar 2021 03:22:49 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:38648 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232994AbhCXHW3 (ORCPT ); Wed, 24 Mar 2021 03:22:29 -0400 Date: Wed, 24 Mar 2021 07:22:26 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1616570547; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMTdHXbv8eVj96jtLmRysp8zykl9xBjwUpZgI9zBLjE=; b=esiMV3VMVfesA/HsXZy0LxTjUvIYiJwVxro0iP5H1KIrtMmQFSetCIdaz61XmIJqaTmEIn y7OBG7RvSKDEtX1YCAm7vgQ8xcbs6TP/gOEjgbo0YzTfLwwiBrrJEg0SDof0bgI3RpB040 hIBI9e1E5LHds0u0y2GJ5MqYpklbV9q8UCryeotuFR1DAJ4waSrSRXSIqFbQx6PqAAj9Lt kEca1d7BVUF1p1iwyHxEJp+EzAUKEc7JgkAJlP4Mc/jNfBL0DcjMTLANOHOqH4TSxwZF5z Rm0oHYBeuhcnjLxfa9cYJKi9veyG3iWMN3IDdABUKKAd5aQz3/3Kgl+F64UfqQ== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1616570547; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=LMTdHXbv8eVj96jtLmRysp8zykl9xBjwUpZgI9zBLjE=; b=tDYQ6iYtENo9yaFahCEJXnWXA2mO/MY1kB4yJsOdzebv2xahzZlvka4AGbSj+wT6pDszsB wU51e6FnCktDQfDQ== From: "tip-bot2 for Shaokun Zhang" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] locking/mutex: Remove repeated declaration Cc: Shaokun Zhang , Ingo Molnar , Waiman Long , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1616564440-61318-1-git-send-email-zhangshaokun@hisilicon.com> References: <1616564440-61318-1-git-send-email-zhangshaokun@hisilicon.com> MIME-Version: 1.0 Message-ID: <161657054669.398.3424034889120871152.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The following commit has been merged into the locking/core branch of tip: Commit-ID: 5965a7adbd72dd9b288c0911cb73719fed1efa08 Gitweb: https://git.kernel.org/tip/5965a7adbd72dd9b288c0911cb73719fed1efa08 Author: Shaokun Zhang AuthorDate: Wed, 24 Mar 2021 13:40:40 +08:00 Committer: Ingo Molnar CommitterDate: Wed, 24 Mar 2021 08:15:19 +01:00 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 --- include/linux/mutex.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/linux/mutex.h b/include/linux/mutex.h index 0cd631a..e7a1267 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;