Hi Timur, kernel test robot noticed the following build errors:
[auto build test ERROR on 654826aa4a8f25cf825ad9254f37e6cb5092098f] url: https://github.com/intel-lab-lkp/linux/commits/Timur-Tabi/rust-pci-add-PCI-device-name-method/20260114-065717 base: 654826aa4a8f25cf825ad9254f37e6cb5092098f patch link: https://lore.kernel.org/r/20260113225408.671252-6-ttabi%40nvidia.com patch subject: [PATCH v4 5/9] rust: debugfs: implement Directory trait for Dir config: x86_64-randconfig-122-20260114 (https://download.01.org/0day-ci/archive/20260116/[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/20260116/[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[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:4085:16 | 4085 | let dir = Dir::new(c_str!("my_debugfs_dir")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:4145:16 | 4145 | let dir = Dir::new(c_str!("my_debugfs_dir")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:4204:16 | 4204 | let dir = Dir::new(c_str!("foo")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:3973:20 | 3973 | let debugfs = Dir::new(c_str!("parent")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:4028:19 | 4028 | let parent = Dir::new(c_str!("parent")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> rust/doctests_kernel_generated.rs:11462:20 | 11462 | let dir = Dir::new(pdev.name()); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 3 + use crate::rust_doctest_kernel_alloc_allocator_rs_0::kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> samples/rust/rust_debugfs.rs:136:28 | 136 | let debugfs = Dir::new(c_str!("sample_debugfs")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 34 + use kernel::debugfs::Directory; | -- >> error[E0599]: no function or associated item named `new` found for struct >> `Dir` in the current scope --> samples/rust/rust_debugfs_scoped.rs:134:29 | 134 | let base_dir = Dir::new(c_str!("rust_scoped_debugfs")); | ^^^ function or associated item not found in `Dir` | = help: items from traits can only be used if the trait is in scope help: trait `Directory` which provides `new` is implemented but not in scope; perhaps you want to import it | 9 + use kernel::debugfs::Directory; | -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
