* [asahilinux:bits/250-aop 34/68] error[E0061]: this function takes 1 argument but 2 arguments were supplied
@ 2026-04-07 3:58 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-04-07 3:58 UTC (permalink / raw)
To: Asahi Lina; +Cc: llvm, oe-kbuild-all, Janne Grunau
tree: https://github.com/AsahiLinux/linux bits/250-aop
head: f7a3080ba37b989ad2fd83054a4b458af97b635d
commit: 92fe4dbd22e7faafad04ddf06d732e336ea7be98 [34/68] Rust: io: Add memcpy_fromio wrapper
config: x86_64-randconfig-073-20260404 (https://download.01.org/0day-ci/archive/20260405/202604051411.VGXONaOa-lkp@intel.com/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/20260405/202604051411.VGXONaOa-lkp@intel.com/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@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202604051411.VGXONaOa-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0061]: this function takes 1 argument but 2 arguments were supplied
--> rust/doctests_kernel_generated.rs:7240:22
|
7240 | let devres_mem = IoMem::<100>::new(res, device)?;
| ^^^^^^^^^^^^^^^^^ ------ unexpected argument #2
|
note: associated function defined here
--> rust/kernel/io/mem.rs:267:12
|
267 | pub fn new<'a>(io_request: IoRequest<'a>) -> impl PinInit<Devres<Self>, Error> + 'a {
| ^^^
help: remove the extra argument
|
7240 - let devres_mem = IoMem::<100>::new(res, device)?;
7240 + let devres_mem = IoMem::<100>::new(res)?;
|
--
>> error[E0277]: the `?` operator can only be applied to values that implement `Try`
--> rust/doctests_kernel_generated.rs:7240:22
|
7240 | let devres_mem = IoMem::<100>::new(res, device)?;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the `?` operator cannot be applied to type `impl PinInit<Devres<IoMem<100>>, Error>`
|
= help: the trait `Try` is not implemented for `impl PinInit<Devres<IoMem<100>>, Error>`
= note: the full name for the type has been written to 'rust/doctests_kernel_generated.long-type-17116501122076988537.txt'
= note: consider using `--verbose` to print the full type name to the console
--
>> error[E0412]: cannot find type `Device` in this scope
--> rust/doctests_kernel_generated.rs:7238:18
|
7238 | fn test(device: &Device, res: Resource) -> Result {
| ^^^^^^ not found in this scope
|
help: consider importing one of these items
|
3 + use kernel::auxiliary::Device;
|
3 + use kernel::device::Device;
|
3 + use kernel::dma::Device;
|
3 + use kernel::drm::Device;
|
and 2 other candidates
--
>> error[E0603]: struct `Resource` is private
--> rust/doctests_kernel_generated.rs:7236:22
|
7236 | use kernel::io::mem::Resource;
| ^^^^^^^^ private struct
|
note: the struct `Resource` is defined here
--> rust/kernel/io/mem.rs:20:13
|
20 | Resource, //
| ^^^^^^^^
help: import `Resource` directly
|
7236 - use kernel::io::mem::Resource;
7236 + use kernel::io::resource::Resource;
|
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-04-07 3:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-07 3:58 [asahilinux:bits/250-aop 34/68] error[E0061]: this function takes 1 argument but 2 arguments were supplied kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox