From nobody Mon Feb 9 08:55:32 2026 Received: from szxga05-in.huawei.com (szxga05-in.huawei.com [45.249.212.191]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id E8C2725A648 for ; Sun, 26 Jan 2025 09:46:25 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.191 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737884789; cv=none; b=BOfWqc+hAzjgcYSEkKyPejPQB+zbJfmtY46Jc9pAJJ2Tz1ybczloQ9nB7z7E2UnmigoRv7MI/xHskC1NZ6Y9VeM8LlNCPcweaLTp/yKxWeLl9DRzYitUlWyIwOWkOfrVm0In+RMcbASImnBvu9lXHtqRyeUfILgOgUnYxx9ZKfw= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1737884789; c=relaxed/simple; bh=jqy5v3Z/pLoBuQPgcB2GWMOTVQokpcuuU75kO4kfF4g=; h=From:To:CC:Subject:Date:Message-ID:MIME-Version:Content-Type; b=SowaZRosFqOtS+mwqZEk4NvVk0C16HaHPKptsJAA8OPEPZWIwt+8xyb1+mLuJYnbzfjp0Bc1BDQFqb8pjbdPRv4A2BIs5HxSboD5lHFMJ3WWPkYSWm4y58x82FiAflyYysS7wwwF5WIPNRJfxougegejpiCYG/R1AhGD+ETsrfM= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.191 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.88.214]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4YgmnG61C9z1l07k; Sun, 26 Jan 2025 17:42:58 +0800 (CST) Received: from kwepemd100011.china.huawei.com (unknown [7.221.188.204]) by mail.maildlp.com (Postfix) with ESMTPS id DDEB11A0171; Sun, 26 Jan 2025 17:46:22 +0800 (CST) Received: from M910t.huawei.com (10.110.54.157) by kwepemd100011.china.huawei.com (7.221.188.204) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1258.34; Sun, 26 Jan 2025 17:46:22 +0800 From: Changbin Du To: Andrew Morton CC: Peter Zijlstra , , Changbin Du Subject: [PATCH] rtmutex: move the comments of rt_mutex to correct location Date: Mon, 27 Jan 2025 01:45:57 +0800 Message-ID: <20250126174557.1121719-1-changbin.du@huawei.com> X-Mailer: git-send-email 2.43.0 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-ClientProxiedBy: dggems704-chm.china.huawei.com (10.3.19.181) To kwepemd100011.china.huawei.com (7.221.188.204) Content-Type: text/plain; charset="utf-8" All the fields of old struct rt_mutex now liesin rt_mutex_base. Move the comments to the correct location. Signed-off-by: Changbin Du --- include/linux/rtmutex.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/include/linux/rtmutex.h b/include/linux/rtmutex.h index 7d049883a08a..f22793fcc694 100644 --- a/include/linux/rtmutex.h +++ b/include/linux/rtmutex.h @@ -20,6 +20,14 @@ =20 extern int max_lock_depth; /* for sysctl */ =20 +/** + * The rt_mutex_base structure + * + * @wait_lock: spinlock to protect the structure + * @waiters: rbtree root to enqueue waiters in priority order; + * caches top-waiter (leftmost node). + * @owner: the mutex owner + */ struct rt_mutex_base { raw_spinlock_t wait_lock; struct rb_root_cached waiters; @@ -46,14 +54,6 @@ static inline bool rt_mutex_base_is_locked(struct rt_mut= ex_base *lock) =20 extern void rt_mutex_base_init(struct rt_mutex_base *rtb); =20 -/** - * The rt_mutex structure - * - * @wait_lock: spinlock to protect the structure - * @waiters: rbtree root to enqueue waiters in priority order; - * caches top-waiter (leftmost node). - * @owner: the mutex owner - */ struct rt_mutex { struct rt_mutex_base rtmutex; #ifdef CONFIG_DEBUG_LOCK_ALLOC --=20 2.43.0