linux-next: manual merge of the rust tree with the driver-core tree
Hi all,
Today's linux-next merge of the rust tree got a conflict in:
rust/kernel/pci/id.rs
between commit:
d8407396f128 ("rust: pci: use "kernel vertical" style for imports")
from the driver-core tree and commit:
0e947bc22b0b ("rust: pci: use kernel::fmt")
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 · 21 lines
Cheers,
Stephen Rothwell
diff --cc rust/kernel/pci/id.rs
index a1de70b2176a,5f5d59ff49fc..000000000000
--- a/rust/kernel/pci/id.rs
+++ b/rust/kernel/pci/id.rs
@@@ -4,11 -4,7 +4,11 @@@
//!
//! This module contains PCI class codes, Vendor IDs, and supporting types.
-use crate::{bindings, error::code::EINVAL, error::Error, fmt, prelude::*};
+use crate::{
+ bindings,
++ fmt,
+ prelude::*, //
+};
- use core::fmt;
/// PCI device class codes.
///Hi all,
Quoted 34 lines · On Fri, 14 Nov 2025 15:18:03 +1100 Stephen Rothwell <[email protected]>…
Today's linux-next merge of the rust tree got a conflict in:
rust/kernel/pci/id.rsbetween commit:
d8407396f128("rust: pci: use "kernel vertical" style for imports")from the driver-core tree and commit:
0e947bc22b0b("rust: pci: usekernel::fmt")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/pci/id.rs +0
-0@@@ -4,11 -4,7 +4,11 @@@//! //! This module contains PCI class codes, Vendor IDs, and supporting types.
rust/kernel/pci/id.rs
Quoted 10 lines
rust/kernel/pci/id.rs +1
-1-use crate::{bindings, error::code::EINVAL, error::Error, fmt, prelude::*}; +use crate::{ + bindings, ++ fmt, + prelude::*, // +}; -use core::fmt;/// PCI device class codes. ///
This is now a conflict between the drivers-core tree and Linus' tree.
Signature · 2 lines
Cheers, Stephen Rothwell