Re: [PATCH v6 6/7] rust: Add read_poll_timeout functions

From: kernel test robot
Date: Sun Nov 17 2024 - 18:47:52 EST


Hi FUJITA,

kernel test robot noticed the following build errors:

[auto build test ERROR on 228ad72e7660e99821fd430a04ac31d7f8fe9fc4]

url: https://github.com/intel-lab-lkp/linux/commits/FUJITA-Tomonori/rust-time-Add-PartialEq-Eq-PartialOrd-Ord-trait-to-Ktime/20241114-151340
base: 228ad72e7660e99821fd430a04ac31d7f8fe9fc4
patch link: https://lore.kernel.org/r/20241114070234.116329-7-fujita.tomonori%40gmail.com
patch subject: [PATCH v6 6/7] rust: Add read_poll_timeout functions
config: um-randconfig-002-20241117 (https://download.01.org/0day-ci/archive/20241118/202411180733.UATVgVuv-lkp@xxxxxxxxx/config)
compiler: clang version 20.0.0git (https://github.com/llvm/llvm-project 592c0fe55f6d9a811028b5f3507be91458ab2713)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241118/202411180733.UATVgVuv-lkp@xxxxxxxxx/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 <lkp@xxxxxxxxx>
| Closes: https://lore.kernel.org/oe-kbuild-all/202411180733.UATVgVuv-lkp@xxxxxxxxx/

All errors (new ones prefixed by >>):

>> error[E0433]: failed to resolve: use of undeclared type `KBox`
--> rust/doctests_kernel_generated.rs:1821:12
|
1821 | let lock = KBox::pin_init(new_spinlock!(()), kernel::alloc::flags::GFP_KERNEL)?;
| ^^^^
| |
| use of undeclared type `KBox`
| help: a struct with a similar name exists: `Box`

Kconfig warnings: (for reference only)
WARNING: unmet direct dependencies detected for GET_FREE_REGION
Depends on [n]: SPARSEMEM [=n]
Selected by [m]:
- RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=y]

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki