Skip to contentSkip to conversation

linux-next: manual merge of the vfs-brauner tree with the rust-fixes tree

DISCUSSION Stephen Rothwell 3 participants 5 messages Oct 1, 2024 – Oct 8, 2024 Linux-next tree

lore
Share & tools
lore
#0 lore raw

Hi all,

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

rust/kernel/lib.rs

between commit:

ece207a83e46 ("rust: kernel: sort Rust modules")

from the rust-fixes tree and commit:

94d356c0335f ("rust: security: add abstraction for secctx")

from the vfs-brauner 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/lib.rs
index b5f4b3ce6b48,ff7d88022c57..000000000000
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@@ -44,8 -46,9 +46,9 @@@ pub mod net
  pub mod page;
  pub mod prelude;
  pub mod print;
 -pub mod sizes;
  pub mod rbtree;
+ pub mod security;
 +pub mod sizes;
  mod static_assert;
  #[doc(hidden)]
  pub mod std_vendor;
#1 lore raw
Quoted 4 lines · Stephen Rothwell

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

rust/kernel/lib.rs

Looks good to me -- thanks!

Cheers,
Miguel

#2 lore raw
In reply to Stephen Rothwell

Hi all,

Quoted 27 lines · On Tue, 1 Oct 2024 10:28:39 +1000 Stephen Rothwell <[email protected]> wrote:

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

rust/kernel/lib.rs

between commit:

ece207a83e46 ("rust: kernel: sort Rust modules")

from the rust-fixes tree and commit:

94d356c0335f ("rust: security: add abstraction for secctx")

from the vfs-brauner 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.

rust/kernel/lib.rs +0 -0
diff --cc rust/kernel/lib.rs
index b5f4b3ce6b48,ff7d88022c57..000000000000

rust/kernel/lib.rs

Quoted 10 lines
rust/kernel/lib.rs +1 -0
@@@ -44,8 -46,9 +46,9 @@@ pub mod net
  pub mod page;
  pub mod prelude;
  pub mod print;
 -pub mod sizes;
  pub mod rbtree;
+ pub mod security;
 +pub mod sizes;
  mod static_assert;
  #[doc(hidden)]
  pub mod std_vendor;

This is now a conflict between the vfs-brauner tree and Linus' tree.

Signature · 2 lines
Cheers,
Stephen Rothwell
#3 lore raw
Quoted 34 lines · Stephen Rothwell

Hi all,

Quoted 31 lines · On Tue, 1 Oct 2024 10:28:39 +1000 Stephen Rothwell <[email protected]> wrote:

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

rust/kernel/lib.rs

between commit:

ece207a83e46 ("rust: kernel: sort Rust modules")

from the rust-fixes tree and commit:

94d356c0335f ("rust: security: add abstraction for secctx")

from the vfs-brauner 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.

rust/kernel/lib.rs +0 -0
diff --cc rust/kernel/lib.rs
index b5f4b3ce6b48,ff7d88022c57..000000000000
@@@ -44,8 -46,9 +46,9 @@@ pub mod net
  pub mod page;
  pub mod prelude;
  pub mod print;
 -pub mod sizes;
Quoted 8 lines
Quoted 6 lines

pub mod rbtree;
+ pub mod security;
+pub mod sizes;
mod static_assert;
#[doc(hidden)]
pub mod std_vendor;

This is now a conflict between the vfs-brauner tree and Linus' tree.

I rebased the rust bindings onto v6.12-rc2. So this conflict will go away.

#4 lore raw
Quoted 2 lines · Christian Brauner

I rebased the rust bindings onto v6.12-rc2. So this conflict will go away.

We are moving AlwaysRefCounted in rust-next, and the new code in your branch uses it, so next-20241008 does not build.

I can add a temporary re-export that we can clean up later on our side, or I can drop the move for another time (it is not a big deal), or we can put your branch on top of / into rust-next.

Cheers,
Miguel