rust-for-linux.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] rust: sync: Update ARef and AlwaysRefCounted imports from sync::aref
@ 2025-08-18 19:10 Shankari Anand
  2025-08-18 22:16 ` Benno Lossin
  2025-08-26  9:07 ` Miguel Ojeda
  0 siblings, 2 replies; 5+ messages in thread
From: Shankari Anand @ 2025-08-18 19:10 UTC (permalink / raw)
  To: Miguel Ojeda, Alex Gaynor
  Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich,
	rust-for-linux, linux-kernel, Shankari Anand

Update the in-file reference of sync/aref.rs to import `ARef` and
`AlwaysRefCounted` from `sync::aref` instead of `types`.

This aligns with the ongoing effort to move `ARef` and
`AlwaysRefCounted` to sync.

Suggested-by: Benno Lossin <lossin@kernel.org>
Link: https://github.com/Rust-for-Linux/linux/issues/1173
Fixes: 07dad44aa9a93 ("rust: kernel: move ARef and AlwaysRefCounted to sync::aref")
Signed-off-by: Shankari Anand <shankari.ak0208@gmail.com>
---
This follows the commit [1] which moves ARef and AlwaysRefCounted modules to sync/aref.rs.

Apologies, I had missed out on changing the in-file reference call for the modules. This should fix that.

[1] https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=07dad44aa9a93b16af19e8609a10b241c352b440
---
 rust/kernel/sync/aref.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/rust/kernel/sync/aref.rs b/rust/kernel/sync/aref.rs
index dbd77bb68617..c53d42cb0734 100644
--- a/rust/kernel/sync/aref.rs
+++ b/rust/kernel/sync/aref.rs
@@ -97,7 +97,7 @@ pub unsafe fn from_raw(ptr: NonNull<T>) -> Self {
     ///
     /// ```
     /// use core::ptr::NonNull;
-    /// use kernel::types::{ARef, AlwaysRefCounted};
+    /// use kernel::sync::aref::{ARef, AlwaysRefCounted};
     ///
     /// struct Empty {}
     ///

base-commit: 3ac864c2d9bb8608ee236e89bf561811613abfce
-- 
2.34.1


^ permalink raw reply related	[flat|nested] 5+ messages in thread
* Re: [PATCH] rust: sync: Update ARef and AlwaysRefCounted imports from sync::aref
@ 2025-08-28 13:11 Shankari Anand
  2025-08-28 13:41 ` Miguel Ojeda
  0 siblings, 1 reply; 5+ messages in thread
From: Shankari Anand @ 2025-08-28 13:11 UTC (permalink / raw)
  To: Miguel Ojeda
  Cc: Andreas Hindborg, Alex Gaynor, rust-for-linux, linux-kernel,
	Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin,
	Alice Ryhl, Trevor Gross, Danilo Krummrich

On Tue, Aug 26, 2025 at 11:07:31AM +0200, Miguel Ojeda wrote:
> On Mon, Aug 18, 2025 at 9:11 PM Shankari Anand
> <shankari.ak0208@gmail.com> wrote:
> >
> > Fixes: 07dad44aa9a93 ("rust: kernel: move ARef and AlwaysRefCounted to sync::aref")
> 
> > Apologies, I had missed out on changing the in-file reference call for the modules. This should fix that.
> 
> I am not sure if this should count as a fix -- it could have easily
> been an intentional, second patch on top of the move, so that the move
> is minimal to avoid modifying the lines at the same time, which is
> something we typically do/want. :)
> 
> Thanks!

Hey, yep I agree. So should I drop the Fixes tag?
 
> Cheers,
> Miguel

Regards,
Shankari

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-28 13:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-18 19:10 [PATCH] rust: sync: Update ARef and AlwaysRefCounted imports from sync::aref Shankari Anand
2025-08-18 22:16 ` Benno Lossin
2025-08-26  9:07 ` Miguel Ojeda
  -- strict thread matches above, loose matches on Subject: below --
2025-08-28 13:11 Shankari Anand
2025-08-28 13:41 ` Miguel Ojeda

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).