Skip to contentSkip to conversation

linux-next: manual merge of the drm-rust tree with the mm-unstable tree

DISCUSSION Stephen Rothwell 2 participants 2 messages Sep 5, 2025 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

rust/kernel/alloc/kbox.rs

between commit:

5efe8a1dcf3b ("rust: add support for NUMA ids in allocations")

from the mm-unstable tree and commit:

671618432f46 ("rust: alloc: kbox: implement AsPageIter for VBox")

from the drm-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 · 18 lines
Cheers,
Stephen Rothwell

diff --cc rust/kernel/alloc/kbox.rs
index 1fef9beb57c8,b69ff4a1d748..000000000000
--- a/rust/kernel/alloc/kbox.rs
+++ b/rust/kernel/alloc/kbox.rs
@@@ -3,8 -3,8 +3,8 @@@
  //! Implementation of [`Box`].
  
  #[allow(unused_imports)] // Used in doc comments.
- use super::allocator::{KVmalloc, Kmalloc, Vmalloc};
+ use super::allocator::{KVmalloc, Kmalloc, Vmalloc, VmallocPageIter};
 -use super::{AllocError, Allocator, Flags};
 +use super::{AllocError, Allocator, Flags, NumaNode};
  use core::alloc::Layout;
  use core::borrow::{Borrow, BorrowMut};
  use core::fmt;
#1 lore raw
Quoted 5 lines · Stephen Rothwell
rust/kernel/alloc/kbox.rs +0 -0
diff --cc rust/kernel/alloc/kbox.rs
index 1fef9beb57c8,b69ff4a1d748..000000000000

rust/kernel/alloc/kbox.rs

Quoted 10 lines
rust/kernel/alloc/kbox.rs +1 -1
@@@ -3,8 -3,8 +3,8 @@@
  //! Implementation of [`Box`].
 
  #[allow(unused_imports)] // Used in doc comments.
- use super::allocator::{KVmalloc, Kmalloc, Vmalloc};
+ use super::allocator::{KVmalloc, Kmalloc, Vmalloc, VmallocPageIter};
 -use super::{AllocError, Allocator, Flags};
 +use super::{AllocError, Allocator, Flags, NumaNode};
  use core::alloc::Layout;
  use core::borrow::{Borrow, BorrowMut};
  use core::fmt;

Looks good, thanks!