linux-next: manual merge of the rust tree with the modules tree
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]);Quoted 9 lines · Stephen Rothwell
Today's linux-next merge of the rust tree got a conflict in:
rust/kernel/str.rsbetween commit:
51d9ee90ea90("rust: str: add radix prefixed integer parsing functions")
Quoted 7 lines
from the modules tree and commit:
3b83f5d5e78a("rust: replaceCStrwithcore::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
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.rsbetween commit:
51d9ee90ea90("rust: str: add radix prefixed integer parsing functions")from the modules tree and commit:
3b83f5d5e78a("rust: replaceCStrwithcore::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!
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.rsbetween commit:
51d9ee90ea90("rust: str: add radix prefixed integer parsing functions")from the modules tree and commit:
3b83f5d5e78a("rust: replaceCStrwithcore::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 Rothwellrust/kernel/str.rs +0
-1@@@ -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