Thread (2 messages) 2 messages, 2 authors, 2025-09-01

[PATCH] rust: file: fix build error

From: Onur Özkan <hidden>
Date: 2025-08-30 04:09:07
Also in: linux-fsdevel, lkml
Subsystem: filesystems (vfs and infrastructure), rust, the rest · Maintainers: Alexander Viro, Christian Brauner, Miguel Ojeda, Linus Torvalds

Fixes an obvious error most likely caused while
resolving a merge conflict from other patches.

Reported-by: kernel test robot <redacted>
Closes: https://lore.kernel.org/oe-kbuild-all/202508291740.MyzqNwyg-lkp@intel.com/ (local)
Signed-off-by: Onur Özkan <redacted>
---
 rust/kernel/fs/file.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/rust/kernel/fs/file.rs b/rust/kernel/fs/file.rs
index f9cf6239916a..f1a3fa698745 100644
--- a/rust/kernel/fs/file.rs
+++ b/rust/kernel/fs/file.rs
@@ -10,7 +10,7 @@
 use crate::{
     bindings,
     cred::Credential,
-    error::{code::*, Error, Result},
+    error::{code::*, to_result, Error, Result},
     sync::aref::{ARef, AlwaysRefCounted},
     types::{NotThreadSafe, Opaque},
 };
--
2.50.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help