Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp197385pxf; Thu, 25 Mar 2021 01:46:12 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwJ+UXzyuDzrgOkZhvUOBDNHVPOgiU+6SOd8PObxSF/fLc26083Oep4Yz4bM3iqd63rk8so X-Received: by 2002:a17:906:82c5:: with SMTP id a5mr8388781ejy.232.1616661972529; Thu, 25 Mar 2021 01:46:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616661972; cv=none; d=google.com; s=arc-20160816; b=StYJ4WvRmcspx42gHzlseSBjKWQdZjXqPRfNXtzu2xpFbRiHVFDp7w0DSlBF+hnH0t IJB1t1XVrWKogiKYtwguMOeSFz/XwPTgGzVxJfWXNwAp0zm4jYnpCOYxRV8jVzGKik/L 6O6MHjKACkDxv95brm49Lt/If0iGuys741Fr+89Sm75XVu9k44dSfRJm6fXoWXvXyYD4 sWt/1LT7S0KFNluRMFhJl57nD5uoX3cvCtOMYjBa6qil8Vuxm5S4ADH3JxVFIVV+LqGf 8IvpVZacgYWYAQ5eZcnJr2fD80Z3vv4xosFiKY1RhyHlOPNSuO/9QzfPsDnSRUgmpzDh EjOQ== 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=N/GelTDZEVzAgNspu6WxRyh/nQN+0sytDp3W/l3eS3w=; b=vyWDcPOs99uzieky+MtwbWJZ7ErexMo/kHw8gwkIxiNXDVVL+TP/nAXueE9LzouSkz skQSsm5qqfEnvkN4iJLp2uPcFmENrkQWMoB5PeMi1gHDCYFrd9t6oDV0ee+kii0OHf5/ Xm4v45yrmnTt2dyvynvX+aBwEUSMhzzpKshAfnUqKKiu2Rz1xNCPe7r7eJ/rByyZ51qG jVBuA9f59VV4y0HQFL8kYwI6wLFwAy4ttXnY817ZkcRRRrC54kkhGUCQzv1FgKjOyMFg LGPRXehGoFAHsL5UhQrJ2SvxKRKEiJGCY8S0q/w2vIvZx4qO2jxPgsophPWFk8d23oUL HcSg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=MEUYdvsa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=jb7Hov0x; 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 p14si3750083edq.556.2021.03.25.01.45.48; Thu, 25 Mar 2021 01:46:12 -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=MEUYdvsa; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b=jb7Hov0x; 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 S229760AbhCYIoq (ORCPT + 99 others); Thu, 25 Mar 2021 04:44:46 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60714 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229906AbhCYIoZ (ORCPT ); Thu, 25 Mar 2021 04:44:25 -0400 Received: from galois.linutronix.de (Galois.linutronix.de [IPv6:2a0a:51c0:0:12e:550::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6A02CC06174A; Thu, 25 Mar 2021 01:44:25 -0700 (PDT) Date: Thu, 25 Mar 2021 08:44:22 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1616661863; 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=N/GelTDZEVzAgNspu6WxRyh/nQN+0sytDp3W/l3eS3w=; b=MEUYdvsaq6aTFEFlI/ZY9YBBhtCqi8SEezeXWpG2k6YKMDPmFwE8nQWQH6Gf9ZU0V2rOyC mBQiwZGV/HfWb0SeG/LppT5N4LTtgvI3enzTleOGqnjQ7AE1nU3XZNaBgoQOtsAo5n+XUV ibDtoL2XJvs5qpZzDn0E5e9L7YYcWC1sOHzz7sH7x308wp9HnKpnRGi25RP5cMWoYfZUgY cK0gG7gW1OX5TzFERAtEhcInuCnTzEKOGTe2pBPPB22fJubh/SjBrGwSWAyQs679dZWThv baj1lHIfwMtPEjmoGhEQRW/60mqMQxUXlWK1h/3IF8QdOquSfleyjpEn0dZ/Uw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1616661863; 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=N/GelTDZEVzAgNspu6WxRyh/nQN+0sytDp3W/l3eS3w=; b=jb7Hov0xgEDwH1lyhcDETlF1bjwCX8e7AQIRju6QdxEKa7F8BEScyuJ/ZoXWmj4XLgZekN vrw1W3eRP3KaRWBA== 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: <161666186260.398.16306380992993651837.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: 93b02d29fbdbc221c866664adcaf0e85be9f8008 Gitweb: https://git.kernel.org/tip/93b02d29fbdbc221c866664adcaf0e85be9f8008 Author: Shaokun Zhang AuthorDate: Wed, 24 Mar 2021 13:40:40 +08:00 Committer: Thomas Gleixner CommitterDate: Thu, 25 Mar 2021 09:42:48 +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;