[PATCH] rust: file: fix build error

Onur Özkan posted 1 patch 1 month ago
rust/kernel/fs/file.rs | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
[PATCH] rust: file: fix build error
Posted by Onur Özkan 1 month ago
Fixes an obvious error most likely caused while
resolving a merge conflict from other patches.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508291740.MyzqNwyg-lkp@intel.com/
Signed-off-by: Onur Özkan <work@onurozkan.dev>
---
 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

Re: [PATCH] rust: file: fix build error
Posted by Christian Brauner 1 month ago
On Sat, Aug 30, 2025 at 07:01:59AM +0300, Onur Özkan wrote:
> Fixes an obvious error most likely caused while
> resolving a merge conflict from other patches.
> 
> Reported-by: kernel test robot <lkp@intel.com>
> Closes: https://lore.kernel.org/oe-kbuild-all/202508291740.MyzqNwyg-lkp@intel.com/
> Signed-off-by: Onur Özkan <work@onurozkan.dev>
> ---

Thanks! I folded this!
Christian