From nobody Tue Sep 29 13:19:53 2026 Received: from galois.linutronix.de (Galois.linutronix.de [193.142.43.55]) (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 C73BD3BCD38; Fri, 7 Aug 2026 16:05:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=193.142.43.55 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786118748; cv=none; b=okiRsC4nHG8liSoGjjl7QOvCu9QfBsQ4fvj+oCVDCqd0oiCryLIGNl+XhXsgdmSbyDKnYqWjn6V0fgdzyhpyTSmt7RWTkBrtMAOZURyoSjtVN5FKfcMbxroPg4BpajKvnHIMfy5eA/BX1eY9b5syCTCAhaIhSLeM+kMwN3Ymfn0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786118748; c=relaxed/simple; bh=7Hat+HIaL6N5Kq2M7h4mbyJyH65o9YqzIycr+xEGNf8=; h=Date:From:To:Subject:Cc:In-Reply-To:References:MIME-Version: Message-ID:Content-Type; b=Pl2vVw1oRNnapS3ITGpMU1f4rI6R/tY2EUsyu+PZCX4t/JDh8pvczy1FRUe0Nc9XHz+8bUkJQSL/JyJAnv2dSBDiHRDN1q1J24csRWJNL7CCyNKjMfJ+p7oMd14XX4Wx+2O6J6IhrkkaRyPvAat1LSIbDI1v8ljJHkA4u188xF4= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de; spf=pass smtp.mailfrom=linutronix.de; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=aERDCqeb; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b=He9aAsJl; arc=none smtp.client-ip=193.142.43.55 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="aERDCqeb"; dkim=permerror (0-bit key) header.d=linutronix.de header.i=@linutronix.de header.b="He9aAsJl" Date: Fri, 07 Aug 2026 16:05:41 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1786118743; h=from:from:sender:sender:reply-to: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=Rw4322ODYAA4/N0F8b+D8/DK4LGlN20Q0k+GzQ7xv3A=; b=aERDCqebOANbYtJcpvIjNdxF75kyM8YUOt+/T1eIZ9yiu8/efY3PsOCfpWAa9xHyb8HUVJ W4GoxKePCGaI3XO5yZWGcFvpc4iUE/zWf6pQXeXQfMcMGzbuohy1TZqFPWk+g89k2Xhnus pVczThf2cPQq6kIOjGWmzNoBQgWim32he0hvAvDnaKXpBqa2TcFBPzSSknfvijcbWmfSKF QRnlFQxaSYoVhc8NkjtISUuDj3R6pAqAkhsjumxkOLoY2NcRebv2Xpkd3OPA23WadPot3d B9ToKpB5LRtYIi72GKS9SnQ5aH+Gf5cWC29HiM6qpGQCtKIfspeWqceOnvb/Qw== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1786118743; h=from:from:sender:sender:reply-to: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=Rw4322ODYAA4/N0F8b+D8/DK4LGlN20Q0k+GzQ7xv3A=; b=He9aAsJlgsz4bUIzZU9QYFB6s+OidIiI6OBVtQtZi1GypIF9CdVKYMl2/gIplBohCYFQTU P4IvlMAJ5IjLMaAQ== From: "tip-bot2 for Gary Guo" Sender: tip-bot2@linutronix.de Reply-to: linux-kernel@vger.kernel.org To: linux-tip-commits@vger.kernel.org Subject: [tip: locking/core] rust: sync: Add helpers for mb, dma_mb and friends Cc: Eliot Courtney , Gary Guo , Boqun Feng , x86@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <20260609-rust-barrier-v2-1-30fcc48e1cd0@garyguo.net> References: <20260609-rust-barrier-v2-1-30fcc48e1cd0@garyguo.net> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Message-ID: <178611874153.708.4447279772636727666.tip-bot2@tip-bot2> Robot-ID: Robot-Unsubscribe: Contact to get blacklisted from these emails Precedence: bulk Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable The following commit has been merged into the locking/core branch of tip: Commit-ID: 79d3d667af401eaa452f046595209aae6933c485 Gitweb: https://git.kernel.org/tip/79d3d667af401eaa452f046595209aae6= 933c485 Author: Gary Guo AuthorDate: Tue, 09 Jun 2026 16:38:37 +01:00 Committer: Boqun Feng CommitterDate: Tue, 04 Aug 2026 05:52:54 -07:00 rust: sync: Add helpers for mb, dma_mb and friends They supplement the existing smp_mb, smp_rmb and smp_wmb. Reviewed-by: Eliot Courtney Signed-off-by: Gary Guo Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20260609-rust-barrier-v2-1-30fcc48e1cd0@gary= guo.net --- rust/helpers/barrier.c | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) diff --git a/rust/helpers/barrier.c b/rust/helpers/barrier.c index fed8853..dbc7a30 100644 --- a/rust/helpers/barrier.c +++ b/rust/helpers/barrier.c @@ -2,6 +2,36 @@ =20 #include =20 +__rust_helper void rust_helper_mb(void) +{ + mb(); +} + +__rust_helper void rust_helper_rmb(void) +{ + rmb(); +} + +__rust_helper void rust_helper_wmb(void) +{ + wmb(); +} + +__rust_helper void rust_helper_dma_mb(void) +{ + dma_mb(); +} + +__rust_helper void rust_helper_dma_rmb(void) +{ + dma_rmb(); +} + +__rust_helper void rust_helper_dma_wmb(void) +{ + dma_wmb(); +} + __rust_helper void rust_helper_smp_mb(void) { smp_mb();