From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.3 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id C4BD7C433C1 for ; Wed, 24 Mar 2021 02:51:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 93290619BA for ; Wed, 24 Mar 2021 02:51:05 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234949AbhCXCuQ (ORCPT ); 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 > . >