Skip to contentSkip to conversation

linux-next: manual merge of the rust tree with the modules tree

DISCUSSION Stephen Rothwell 3 participants 4 messages Nov 3, 2025 – Dec 5, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

Today's linux-next merge of the rust tree got a conflict in:

rust/kernel/str.rs

between commit:

51d9ee90ea90 ("rust: str: add radix prefixed integer parsing functions")

from the modules tree and commit:

3b83f5d5e78a ("rust: replace CStr with core::ffi::CStr")

from the rust tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 22 lines
Cheers,
Stephen Rothwell

diff --cc rust/kernel/str.rs
index a1a3581eb546,7593d758fbb7..000000000000
--- a/rust/kernel/str.rs
+++ b/rust/kernel/str.rs
@@@ -10,11 -10,11 +10,13 @@@ use crate::
  };
  use core::{
      marker::PhantomData,
-     ops::{self, Deref, DerefMut, Index},
+     ops::{Deref, DerefMut, Index},
  };
  
+ pub use crate::prelude::CStr;
+ 
 +pub mod parse_int;
 +
  /// Byte string without UTF-8 validity guarantee.
  #[repr(transparent)]
  pub struct BStr([u8]);
#1 lore raw
Quoted 9 lines · Stephen Rothwell

Today's linux-next merge of the rust tree got a conflict in:

rust/kernel/str.rs

between commit:

51d9ee90ea90 ("rust: str: add radix prefixed integer parsing functions")

Quoted 7 lines

from the modules tree and commit:

3b83f5d5e78a ("rust: replace CStr with core::ffi::CStr")

from the rust tree.

I fixed it up (see below) and can carry the fix as necessary. This

Looks good, thanks!

Cheers,
Miguel

#2 lore raw
Quoted 14 lines · Miguel Ojeda
Quoted 13 lines · Stephen Rothwell

Today's linux-next merge of the rust tree got a conflict in:

rust/kernel/str.rs

between commit:

51d9ee90ea90 ("rust: str: add radix prefixed integer parsing functions")

from the modules tree and commit:

3b83f5d5e78a ("rust: replace CStr with core::ffi::CStr")

Quoted 8 lines
Quoted 3 lines

from the rust tree.

I fixed it up (see below) and can carry the fix as necessary. This

Looks good, thanks!

Cheers,
Miguel

Yes, looks good to me as weel. Thanks!

#3 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 35 lines · On Tue, 4 Nov 2025 10:55:16 +1100 Stephen Rothwell <[email protected]> wrote:

Today's linux-next merge of the rust tree got a conflict in:

rust/kernel/str.rs

between commit:

51d9ee90ea90 ("rust: str: add radix prefixed integer parsing functions")

from the modules tree and commit:

3b83f5d5e78a ("rust: replace CStr with core::ffi::CStr")

from the rust tree.

I fixed it up (see below) and can carry the fix as necessary. This is now fixed as far as linux-next is concerned, but any non trivial conflicts should be mentioned to your upstream maintainer when your tree is submitted for merging. You may also want to consider cooperating with the maintainer of the conflicting tree to minimise any particularly complex conflicts.

Signature · 2 lines
Cheers,
Stephen Rothwell
rust/kernel/str.rs +0 -1
diff --cc rust/kernel/str.rs
index a1a3581eb546,7593d758fbb7..000000000000
@@@ -10,11 -10,11 +10,13 @@@ use crate::
  };
  use core::{
      marker::PhantomData,
-     ops::{self, Deref, DerefMut, Index},

rust/kernel/str.rs

Quoted 10 lines
rust/kernel/str.rs +3 -0
+     ops::{Deref, DerefMut, Index},
  };
 
+ pub use crate::prelude::CStr;
+ 
 +pub mod parse_int;
 +
  /// Byte string without UTF-8 validity guarantee.
  #[repr(transparent)]
  pub struct BStr([u8]);

This is now a conflict between the modules tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell