From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qv1-f50.google.com (mail-qv1-f50.google.com [209.85.219.50]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 4BDB12DBF5E for ; Fri, 14 Nov 2025 06:02:07 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.219.50 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763100128; cv=none; b=fCHIwAGXcRCdMOCi9PNIuQntzqf13rD8fwKTKVAPAUSq0bRo/3/5SDwUWg4QabF1//25gtxZ/N2ShGOS6br3peLMA2L8mmteF4+2LwfjcR7/QCsMWALaun1kE6baAS9JZ7lKHfBC1ruowe7xfpgQEL9VHNa+C9IhPlttNzKGbKY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1763100128; c=relaxed/simple; bh=EnkI5JjdWIMaZagJI90MH776/v4LdDCj+FBGdPp4PCc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=PoKlG6byr7gkFSXJXJ9ssps/WHo043O4toG8vChRobKVef+54CBeLDSgTLZ94otoQU9E+l/xWOPOn9IqKmIHmHnZ7JjRsU5VVDYSTHk8g5o2kwBTuz8WWs6WQadWK8WYUoJRg791MwpRqgFtKwAmgGFn3fn/zS5wSC3IPFFmcMo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=NLu4Pnh/; arc=none smtp.client-ip=209.85.219.50 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="NLu4Pnh/" Received: by mail-qv1-f50.google.com with SMTP id 6a1803df08f44-8824a756771so15472126d6.0 for ; Thu, 13 Nov 2025 22:02:07 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1763100126; x=1763704926; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:from:to:cc:subject :date:message-id:reply-to; bh=a+232ksQ0H/2VtPMqeUqckJQdfTHKn8qYr0CZzrNZ0w=; b=NLu4Pnh/fHFcOjPmvgSnZa+idRYiM56gBHHp8649WC7X0ShYH+4NHYBdb+xeAeTP6q 00L0Encx7+cyP0djmmWEx1DvmxEK31+37O5zccZ/WBsAiHrAuE8Poqaw8OzNYLgc2cx2 zexfx8OVhNngeJS2onZ8nolyrljcalvm8h34S7jNS/lo4uaXAa64697l1aBf1vtYhzaN 6tMzRO6+MnLZfPj5DaAqu/IXJRwuhuJl8eztCZNuP0ufZANBKmHZBUpZSoVLlMURyvbX B/+ATaFS7DDxFHEr/YUsYcGGXI6AKkDUk+LftIs0nXAHKqkhMO82P110GGiiBYDsec7s rSPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1763100126; x=1763704926; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:feedback-id:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=a+232ksQ0H/2VtPMqeUqckJQdfTHKn8qYr0CZzrNZ0w=; b=lpgrl1JXfXtw7VOhIBwBjrrFXTIkf/SXd09M/5RkwMZM0ZvgAXafs+bNeZ9jTi+74W hzFBqpbi5P+oVJuZ7K8cn2zrUKL6c/iC55J/XwNhqtAMFXfP009fxYIRKiAR+zaDeslU /EJV4yPHAUOvFCngHY5oNJtr8inAv//OK5BMMqRLxtL2SQDfnRMhk4rrqdlCeGbpSjqD F9VWs+ldL35GEWds9GAtvpv/joFaOGF744c6UcLAyngb5xBmocaUxqbMqg1I9V94/DTX MRSZC6nP8d+U2raV8yAHNdPZ7E0WDSTVW76zJSx/BGjloPgvSXe8g9EeMb8hJFx6/I48 Avsw== X-Forwarded-Encrypted: i=1; AJvYcCWNkTXQ/uipwmlet3vmTtwIS1v7C2aBydy1TPcjg0eWZHlgJaR4h5WD5WCxTBWVC9YSywwiD4Z58yAF0ZY=@vger.kernel.org X-Gm-Message-State: AOJu0YxuQTi9cGB9Zbv1Whi2J54FX0wwirgGdTj+SQ64YvzNO+GUvEsJ LF0h2PSSSMz0AXlfci29u6/RHDFO6AiND1OkNLReZMBsChNHmJlbw015 X-Gm-Gg: ASbGncsasMfdRBEdTbx+eAphPueRnJ65x2cRDhpJ+UmuwWkfQMe51NO9j/sHMBsD8iN ERN3gXjviPb14Iy00TJB+QuKFhn6PjBdDf9NZlRDE9vPdAZpkn6P9yaJw6el8Pf/BElFUL0isIz g6TOua/YXLSNmxBcE0lEAF1qPzDwMGY9/1zXeJEjLR6K3XdiSpe+pX2jlbSP/UO66x4gqMamn1p xftj1qYgaemKuBgEdX1y+MoX1tzhC/586KGG8zSUGzOEZqXLpEOtE6CGpCvsHvSP6Jshsgpj37d Q+KUL/Bq2pthPdHUX1uTCZtnBb7Z0Noh3X9N0EgXp6MpmYF4+U7o8Gu39uOwF0N6VbUG1q1gRzU PCXmTjN3/GtI63HY1Q+LOEEeOKt4r+zWb7YGzIcHCUWzQ8xKYav84Uq0Qku5YnYGMXXpRNr1SxC VZ+8Y4MIIszFKrg0YvpXttUMnI19VZ/0S9sBk6yXM10J1b/x+l3Nw5I6X34RbGfJKMyblxk62cu 8qghZqvVf++GrU= X-Google-Smtp-Source: AGHT+IFIjWZsRYUO4bHseBkrJUFq8odY93vLJY35vB+BNKbufDIPgB8TyCxOv3l89ZDlUVee/FaMCQ== X-Received: by 2002:ad4:5764:0:b0:882:36d6:e5c1 with SMTP id 6a1803df08f44-88290fb06b7mr31264156d6.29.1763100125958; Thu, 13 Nov 2025 22:02:05 -0800 (PST) Received: from fauth-a1-smtp.messagingengine.com (fauth-a1-smtp.messagingengine.com. [103.168.172.200]) by smtp.gmail.com with ESMTPSA id 6a1803df08f44-8828652c882sm26094556d6.32.2025.11.13.22.02.05 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Nov 2025 22:02:05 -0800 (PST) Received: from phl-compute-11.internal (phl-compute-11.internal [10.202.2.51]) by mailfauth.phl.internal (Postfix) with ESMTP id 1D52EF4007E; Fri, 14 Nov 2025 01:02:05 -0500 (EST) Received: from phl-mailfrontend-01 ([10.202.2.162]) by phl-compute-11.internal (MEProxy); Fri, 14 Nov 2025 01:02:05 -0500 X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtdeggddvtdeltdehucetufdoteggodetrf dotffvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfurfetoffkrfgpnffqhgenuceu rghilhhouhhtmecufedttdenucesvcftvggtihhpihgvnhhtshculddquddttddmnecujf gurhephffvvefufffkofgjfhgggfestdekredtredttdenucfhrhhomhepuehoqhhunhcu hfgvnhhguceosghoqhhunhdrfhgvnhhgsehgmhgrihhlrdgtohhmqeenucggtffrrghtth gvrhhnpedvveekvddtffelffelfedvudefffeuheejgeeivedufffgledvgeduveffueeh leenucffohhmrghinhepmhhsghhiugdrlhhinhhknecuvehluhhsthgvrhfuihiivgeptd enucfrrghrrghmpehmrghilhhfrhhomhepsghoqhhunhdomhgvshhmthhprghuthhhphgv rhhsohhnrghlihhthidqieelvdeghedtieegqddujeejkeehheehvddqsghoqhhunhdrfh gvnhhgpeepghhmrghilhdrtghomhesfhhigihmvgdrnhgrmhgvpdhnsggprhgtphhtthho pedvtddpmhhouggvpehsmhhtphhouhhtpdhrtghpthhtohepmhhinhhgoheskhgvrhhnvg hlrdhorhhgpdhrtghpthhtohepphgvthgvrhiisehinhhfrhgruggvrggurdhorhhgpdhr tghpthhtohepfihilhhlsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehlohhnghhmrg hnsehrvgguhhgrthdrtghomhdprhgtphhtthhopehgrhgvghhkhheslhhinhhugihfohhu nhgurghtihhonhdrohhrghdprhgtphhtthhopehrrghfrggvlheskhgvrhhnvghlrdhorh hgpdhrtghpthhtohepuggrkhhrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopehojhgv uggrsehkvghrnhgvlhdrohhrghdprhgtphhtthhopegrlhgvgidrghgrhihnohhrsehgmh grihhlrdgtohhm X-ME-Proxy: Feedback-ID: iad51458e:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Fri, 14 Nov 2025 01:02:04 -0500 (EST) From: Boqun Feng To: Ingo Molnar , Peter Zijlstra Cc: "Will Deacon" , "Waiman Long" , reg Kroah-Hartman , "Rafael J. Wysocki" , Danilo Krummrich , Miguel Ojeda , Alex Gaynor , Gary Guo , =?UTF-8?q?Bj=C3=B6rn=20Roy=20Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Mark Rutland , linux-kernel@vger.kernel.org, rust-for-linux@vger.kernel.org, Boqun Feng , David Gow Subject: [PATCH 1/4] rust: sync: atomic: Make Atomic*Ops pub(crate) Date: Thu, 13 Nov 2025 22:01:57 -0800 Message-ID: <20251114060200.12982-2-boqun.feng@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20251114060200.12982-1-boqun.feng@gmail.com> References: <20251114060200.12982-1-boqun.feng@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit In order to write code over a generate Atomic we need to make Atomic*Ops public so that functions like `.load()` and `.store()` are available. Make these pub(crate) at the beginning so the usage in kernel crate is supported. Tested-by: David Gow Acked-by: Greg Kroah-Hartman Signed-off-by: Boqun Feng Link: https://patch.msgid.link/20251022035324.70785-2-boqun.feng@gmail.com --- rust/kernel/sync/atomic.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rust/kernel/sync/atomic.rs b/rust/kernel/sync/atomic.rs index 016a6bcaf080..0bc6e7b04d67 100644 --- a/rust/kernel/sync/atomic.rs +++ b/rust/kernel/sync/atomic.rs @@ -22,9 +22,10 @@ pub use internal::AtomicImpl; pub use ordering::{Acquire, Full, Relaxed, Release}; +pub(crate) use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps}; use crate::build_error; -use internal::{AtomicArithmeticOps, AtomicBasicOps, AtomicExchangeOps, AtomicRepr}; +use internal::AtomicRepr; use ordering::OrderingType; /// A memory location which can be safely modified from multiple execution contexts. -- 2.50.1 (Apple Git-155)