Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp760896pxf; Wed, 24 Mar 2021 15:34:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzkabBM3MPtqhEhRbHdv2YweQftQs3mG+vikVNCtQdnWuIoTCLfEyScRuSAfjpd/f/yJlRx X-Received: by 2002:a17:906:d787:: with SMTP id pj7mr5932655ejb.257.1616625277857; Wed, 24 Mar 2021 15:34:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616625277; cv=none; d=google.com; s=arc-20160816; b=RZ38YvSIPnIhuQvMi0OYbtD+9/KPG2TIc0vLhsVTgaCWYgnvfR1zxBC+WmXoIDHZbT gTaW8fzYVHs5ea/gADEeXOFamIiLW7j4ah1XBvtSc1g3EJZ2COpQqa1CyEB+bx7d5clV uO+UBk/IGo5QrgvwwP/TXeqzbkAvxqv7uI7jIdrH3iKgkwJighR9Lem9cbLw7S8auL2j zcWSPDr2C+HQN1Mc09iTHMBMH7NsizW3vDT6bBd9jEti7b4hg5Mg6Qys1lNd9/EN488Q bp8JfDzVDYfVjavG7RyKr/3VvxRmq9GcDVUAOn7ngmQ8Pct9ppXBgjmJN4TDngsEW69t 8Jdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from; bh=G90nIskO/qTU0FE2YkeC8PO1kaJlDiZGx20wQta5D/k=; b=CqsZMmRmfZJb5K0rqQpn+AqdDfMs1sCA06LwoBbZsW6leUjpjccbOp2nUVHx4mzTgP P02eHkWoBaAbzDknRNWwgs2iJig5Yn4QO+DeKO+i5rOd8i/44waTEtW3oWZwHFtjV3gw Zc0ErBVajg/fxpjjr/4/N4JZ2Y4ESUZr6VDcWCMP9YmlLlDmQpO4RvUYnZMKO+PA1o+Z 0byCB+7459Oq/V0C4Apdnq0K0A6RwF3JMldVH5Vo4lWDPfzCy1OsjvuSN6lAcSbIGmSR gMYLpT49S4UY4HNuqkdecKTJwG8Q426PUua44q/+dKa5z+8S57fEu/Bj6+GgPLk+kkf7 oIjg== 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 ci8si2721249ejc.428.2021.03.24.15.34.14; Wed, 24 Mar 2021 15:34:37 -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 S232935AbhCXFkx (ORCPT + 99 others); Wed, 24 Mar 2021 01:40:53 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:13674 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232940AbhCXFkW (ORCPT ); Wed, 24 Mar 2021 01:40:22 -0400 Received: from DGGEMS409-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4F4xpM1S8sznVgr; Wed, 24 Mar 2021 13:37:47 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by DGGEMS409-HUB.china.huawei.com (10.3.19.209) with Microsoft SMTP Server id 14.3.498.0; Wed, 24 Mar 2021 13:40:08 +0800 From: Shaokun Zhang To: CC: Shaokun Zhang , Peter Zijlstra , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng Subject: [PATCH v2] locking/mutex: Remove repeated declaration Date: Wed, 24 Mar 2021 13:40:40 +0800 Message-ID: <1616564440-61318-1-git-send-email-zhangshaokun@hisilicon.com> X-Mailer: git-send-email 2.7.4 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.69.192.56] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. Cc: Peter Zijlstra Cc: Ingo Molnar Cc: Will Deacon Cc: Waiman Long Cc: Boqun Feng Acked-by: Waiman Long Signed-off-by: Shaokun Zhang --- 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 0cd631a19727..e7a126796937 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; -- 2.7.4