Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp182089pxf; Wed, 24 Mar 2021 02:27:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwR6/JjYv9BTA9fohVeUWoLEcCle3jn1hvBrHDCbueePNO00+wQF4xR3YS+cGhzhIwe+DmJ X-Received: by 2002:a17:906:82c5:: with SMTP id a5mr2710252ejy.232.1616578044149; Wed, 24 Mar 2021 02:27:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616578044; cv=none; d=google.com; s=arc-20160816; b=SGxRgvt/9AmBUj88JoQj+LS8Vn5eaVoKcFjRdiOE53dKohE6FzK0Xo5No6ru/jk9UE D8XDMc6Lc5eFsye0MSONBndbP/B+fDPBV728gL7sxlgRmhmpxCAW7aX/YgSTD//pvRb4 XdS8h9SPbtT6stbaLxJThlzNztEpZxrxG7PLE1lg5yfDQrHe8FyczNhbHr/xQCg4wM08 e/q2FwLf0VZUPp6VmvUPTqJtcgDawaD0lG1Y0CkQflx4x/RTDVL4DiLBcPai50Ygn0OE Ciqhxxf3psH6r3pFfada0Lgr1u51CkQaTtfSE2pBCGFkwS19W9MMUFqU33MUokxrYrML WOPA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=otanWEnnopugcD44+mDnpd7MVGp3YgFvrdZ9G24NfRA=; b=ijS5LNpFUGMZZutWkTOKtiVk0PCh3IDohZhI76061vU4AjY1dkET2Ch+ImUA9HORVr //FqxKOfP4W/c/pOY8WMOwaeoxkK3HVUhczdj3ayKSqx8FsqNxC+W1A3Vtv8mJUb8Zyf jgJoE9SZhv/EpLLJkT8Ha+DtEU/2iu1K6tZbU01MgfRoNsKWIithooCFwfwpmIRRzaU6 aO57OOfE/vWJpYKYLe5uvokoyvdXWKIuk1pyFkTwVH2i4Qigxv/6LwsKBuaVuIrGIxMK HEh9CWKjP6Vf9ZPUSfWPIsGC/cllZfOp5T+RwVarBXTDCeohC9Tz1PsKUUMgcZwQDc7c P+5w== ARC-Authentication-Results: i=1; mx.google.com; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt8si1324953ejc.111.2021.03.24.02.26.59; Wed, 24 Mar 2021 02:27:23 -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; 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=fail (p=NONE sp=NONE dis=NONE) header.from=hisilicon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234944AbhCXCuQ (ORCPT + 99 others); Tue, 23 Mar 2021 22:50:16 -0400 Received: from szxga05-in.huawei.com ([45.249.212.191]:14514 "EHLO szxga05-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232089AbhCXCtr (ORCPT ); Tue, 23 Mar 2021 22:49:47 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4F4t1Z2vNxzPlZP; Wed, 24 Mar 2021 10:47:14 +0800 (CST) Received: from [10.67.77.175] (10.67.77.175) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.498.0; Wed, 24 Mar 2021 10:49:43 +0800 Subject: Re: [PATCH] locking/mutex: Remove repeated declaration To: Ingo Molnar CC: , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng References: <1616461774-18644-1-git-send-email-zhangshaokun@hisilicon.com> <20210323112356.GC3939639@gmail.com> From: Shaokun Zhang Message-ID: <18e11fe3-5866-f46a-9366-a5065d2147ed@hisilicon.com> Date: Wed, 24 Mar 2021 10:49:43 +0800 User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20210323112356.GC3939639@gmail.com> Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [10.67.77.175] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Ingo, On 2021/3/23 19:23, Ingo Molnar wrote: > > * 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. Ok, > > I.e. have something like this at the top: > Got it, I will do it in next version. Thanks, Shaokun > struct ww_class; > struct ww_acquire_ctx; > > Thanks, > > Ingo > . >