error[E0425]: cannot find function `to_result` in this scope
kernel test robot
build bottree: https://git.kernel.org/pub/scm/linux/kernel/git/vfs/vfs.git vfs-6.18.rust head: bcd0b5f0199b33d65271c10859b414b4864aa1f2 commit: bcd0b5f0199b33d65271c10859b414b4864aa1f2 [4/4] rust: file: use to_result for error handling config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250829/[email protected]/config) compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261) rustc: rustc 1.88.0 (6b00bc388 2025-06-23) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250829/[email protected]/reproduce)
If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags
| Reported-by: kernel test robot <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
All errors (new ones prefixed by >>):
>> error[E0425]: cannot find function `to_result` in this scope
--> rust/kernel/fs/file.rs:402:9
|
402 | to_result(fd)?;
| ^^^^^^^^^ not found in this scope
|
help: consider importing this function
|
10 + use crate::error::to_result;
|
Signature · 2 lines
0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki