Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp4161744pxf; Tue, 23 Mar 2021 04:26:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzrJUGY4PpKjFsvSFd3EOidEF7aW6QfykkIEBLu6+AZTHxkIfVjRCCEiZma3Z6hew3hXNE0 X-Received: by 2002:a17:906:b817:: with SMTP id dv23mr4486525ejb.281.1616498775454; Tue, 23 Mar 2021 04:26:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616498775; cv=none; d=google.com; s=arc-20160816; b=ZV2BBTkccOLKL4Vh3OSlqsbkWnoofUUp9QwglGHQS4ZmUaO9QOgjHxTQmEm2jnR7B1 Gm7Ls8vVpVWuqDO/SWnx0891/pkhV8nVrSABLtTuf75U0npELa+sFPX3DJffYUKFJ788 Qbo949pS/hq9kPhygVIk2kCh+ELCwKCwVqogsiM8h7WEsZoIYy1Kt/FQoXEAVxiI6Zi0 fAKeoydaY30tStD7bcKcpZJC1tAWbj/P96kp3uGsiaahS24+JKCDVT8a7Eak4HHiH/Y9 KuBjBBizcfoZf5sBiD9ha4W2i1XOCAevv3hcJlOnUmoKs5y1fcaNQTB+5HCDsWaDryJ3 Lbdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:sender:dkim-signature; bh=w2mw+IKy+QrhKxllQ8y4LIdko3rj7rSdl88PKxiyefM=; b=ckIwKF5Z660lWys2ZTGipQY3tyck+uIC6t8m5478FV6+Rr363zbpUv/6oTKAnHEbJn v7mp+C64dMxc5WQeGIEQWm7KPNCMjoK0OZkSII9TapFnrY07waYZzUQbMB5Ibp6YDqzl SUsTepqdKfQOd4atoJ/DXvqQPRCkMhwEb+gcFhTnn0qXiyVB9/XGlAeR9cgcJaq9Hh15 4fPL5rzUoEJs3d261iIi1NzQ0y1LcRJRymLphxTYWnUDM8/xu7C9rpnQ+8o6O9pyjBAk 8yLferIzgTk2IlqN9MXt55PjiNpfAMM0j2a2tnEla5ftQEdxMxl2189/T5sznJC0oTNi oBOA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=X0TTrJdm; 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=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id j20si13375779ejs.411.2021.03.23.04.25.51; Tue, 23 Mar 2021 04:26:15 -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=@gmail.com header.s=20161025 header.b=X0TTrJdm; 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=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230391AbhCWLY1 (ORCPT + 99 others); Tue, 23 Mar 2021 07:24:27 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36652 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230358AbhCWLYA (ORCPT ); Tue, 23 Mar 2021 07:24:00 -0400 Received: from mail-ej1-x631.google.com (mail-ej1-x631.google.com [IPv6:2a00:1450:4864:20::631]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E64BDC061574 for ; Tue, 23 Mar 2021 04:23:59 -0700 (PDT) Received: by mail-ej1-x631.google.com with SMTP id jy13so26439244ejc.2 for ; Tue, 23 Mar 2021 04:23:59 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=w2mw+IKy+QrhKxllQ8y4LIdko3rj7rSdl88PKxiyefM=; b=X0TTrJdmjHuSIk+LOr9SUK5uEbvkSjTc1JpNAFLcEMYV0JhCw+8mxPepc7UrqlOqHx iIgKvVwrXB2/BySvG4LwQ9lbBab/13690lXM9h12dVy7kJHa8S0kvBKX7pYJ/hZqfcZv 5txEpj9Xu1rRgl874PtpLYbqVTIUyBNO7WtlCBEjUuCweOu/G8omPMYWkEaHINlRqxxn hM/APujpCNeXpI/++joSZafQyGPQutdZU558cNvKDO03kkGOa+B0tkaiBEWgcKuonhX8 28I12IlVdu8Pfo7Y4RYkEg7Yrbwm3dzF2hDniLaiSGfANmq9InznLzfzIyem5ehwY3hX SGjg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-disposition:in-reply-to; bh=w2mw+IKy+QrhKxllQ8y4LIdko3rj7rSdl88PKxiyefM=; b=P2iJhecxP29dj+8S2GIRcT5NVtFvzsoXYXewjOEdX8D4SqBXZOGDaZmuilohYm5/Vv bBUOG3O7tAouP+0HM5Q8YxacBxzIVbYN27vYF9tVfRmWRBmKs1t3IEsM1e7js5wjgp5t fwEi35znLivdTQa0XI4VL9AAVayV0tfH1RfvGbUKKl8YvoyGax2MaWyXlTQXuRIMwFct dHOLf/FCoC7h1Mxjc70YVvLGb4f2Jwu2k9fRaOIUD1tbcJ/Ls5kIUCjU5owHt3/jbFw8 P3e7BKXl0qFC3xTQxF7h1F+Dvtpjw1cQY/f5zuI+J3Nio+4xY1L6knqI7kmaGzdieIF5 3Kww== X-Gm-Message-State: AOAM531sSHUAqRM+rwHFykL1brO0PjoLPq1xl3GYOe7oxl30gHhWYCxy eaFJ1bezdZMD/NNQDHDzjUw= X-Received: by 2002:a17:906:81c9:: with SMTP id e9mr4364420ejx.456.1616498638748; Tue, 23 Mar 2021 04:23:58 -0700 (PDT) Received: from gmail.com (54033286.catv.pool.telekom.hu. [84.3.50.134]) by smtp.gmail.com with ESMTPSA id mc10sm10837835ejb.56.2021.03.23.04.23.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 Mar 2021 04:23:58 -0700 (PDT) Sender: Ingo Molnar Date: Tue, 23 Mar 2021 12:23:56 +0100 From: Ingo Molnar To: Shaokun Zhang Cc: linux-kernel@vger.kernel.org, Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: Re: [PATCH] locking/mutex: Remove repeated declaration Message-ID: <20210323112356.GC3939639@gmail.com> References: <1616461774-18644-1-git-send-email-zhangshaokun@hisilicon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1616461774-18644-1-git-send-email-zhangshaokun@hisilicon.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Shaokun Zhang wrote: > Commit 0cd39f4600ed ("locking/seqlock, headers: Untangle the spaghetti monster") > introduces 'struct ww_acquire_ctx' again, remove the repeated declaration. > > Cc: Peter Zijlstra > Cc: Ingo Molnar > Cc: Will Deacon > Cc: Waiman Long > Cc: Boqun Feng > Signed-off-by: Shaokun Zhang > --- > include/linux/mutex.h | 2 -- > 1 file changed, 2 deletions(-) > > diff --git a/include/linux/mutex.h b/include/linux/mutex.h > index 0cd631a19727..d80c0e22c822 100644 > --- a/include/linux/mutex.h > +++ b/include/linux/mutex.h > @@ -20,8 +20,6 @@ > #include > #include > > -struct ww_acquire_ctx; > - > /* > * Simple, straightforward mutexes with strict semantics: > * Please also group the pre-declarations together, that's the canonical pattern we use in headers. I.e. have something like this at the top: struct ww_class; struct ww_acquire_ctx; Thanks, Ingo