Skip to contentSkip to conversation

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

PATCH Mark Brown 2 participants 2 messages Sep 16, 2025

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

Hi all,

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

rust/kernel/fs/file.rs

between commits:

eed8e4c07d85c ("rust: fs: update ARef and AlwaysRefCounted imports from sync::aref") c37adf34a5dc5 ("rust: file: use to_result for error handling")

from the vfs-brauner tree and commit:

e6aedde22dc42 ("rust: file: use kernel::{fmt,prelude::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.

rust/kernel/fs/file.rs +0 -0
diff --cc rust/kernel/fs/file.rs
index f1a3fa6987451,67a3654f0fd37..0000000000000
@@@ -10,9 -10,9 +10,10 @@@
  use crate::{
      bindings,
      cred::Credential,
 -    error::{code::*, Error, Result},
 +    error::{code::*, to_result, Error, Result},
+     fmt,
 -    types::{ARef, AlwaysRefCounted, NotThreadSafe, Opaque},
 +    sync::aref::{ARef, AlwaysRefCounted},
 +    types::{NotThreadSafe, Opaque},
  };
  use core::ptr;
  
#1 lore raw
Quoted 2 lines · Mark Brown

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

Thanks for all these Mark, and sorry about it.

(I may use these as an example for my proposal to have a chance to do this sort of "treewide Rust cleanups" late during the merge window to avoid this sort of thing for Stephen/you and others.)

Cheers,
Miguel