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=-17.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER,INCLUDES_PATCH,MAILING_LIST_MULTI,NICE_REPLY_A, SPF_HELO_NONE,SPF_PASS,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 94AC1C433DB for ; Tue, 23 Mar 2021 01:40:03 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6BD7D61993 for ; Tue, 23 Mar 2021 01:40:03 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231504AbhCWBjc (ORCPT ); Mon, 22 Mar 2021 21:39:32 -0400 Received: from us-smtp-delivery-124.mimecast.com ([63.128.21.124]:58991 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231516AbhCWBj0 (ORCPT ); Mon, 22 Mar 2021 21:39:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1616463566; h=from:from: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=Nu+yoWMzzgGr1gCDRbvEmZk3Z9T6e6oSH4qrWWkWJtw=; b=OGnN1hQ5/YsrwhcunNW6Re/I1gdPX4izceCJAVMTtjg+tBzkNwNeI/+S36XpJEoExurf2d H4PN3vO1ZnkK6WuOXzKi+U8pWsNe6Qhe6TqrCuyA11JH8JecDEjyn8ALGBOuTLe4Jbnvsn 00txOpUCqkPjutBA+gavkDm3prblY10= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-446-SQ1GQ4yAM0izyxevZ022VQ-1; Mon, 22 Mar 2021 21:39:24 -0400 X-MC-Unique: SQ1GQ4yAM0izyxevZ022VQ-1 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 00C011084C83; Tue, 23 Mar 2021 01:39:23 +0000 (UTC) Received: from llong.remote.csb (ovpn-114-80.rdu2.redhat.com [10.10.114.80]) by smtp.corp.redhat.com (Postfix) with ESMTP id 0B70B5946D; Tue, 23 Mar 2021 01:39:21 +0000 (UTC) Subject: Re: [PATCH] locking/mutex: Remove repeated declaration To: Shaokun Zhang , linux-kernel@vger.kernel.org Cc: Peter Zijlstra , Ingo Molnar , Will Deacon , Boqun Feng References: <1616461774-18644-1-git-send-email-zhangshaokun@hisilicon.com> From: Waiman Long Organization: Red Hat Message-ID: Date: Mon, 22 Mar 2021 21:39:21 -0400 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.0 MIME-Version: 1.0 In-Reply-To: <1616461774-18644-1-git-send-email-zhangshaokun@hisilicon.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 3/22/21 9:09 PM, 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: > * Yes, it is duplicated. Acked-by: Waiman Long