llvm.lists.linux.dev archive mirror
 help / color / mirror / Atom feed
* Re: [PATCH v2 2/2] rust: add firmware abstractions
       [not found] <20240610180318.72152-3-dakr@redhat.com>
@ 2024-06-12 11:32 ` kernel test robot
  2024-06-13  3:36 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-06-12 11:32 UTC (permalink / raw)
  To: Danilo Krummrich; +Cc: llvm, oe-kbuild-all

Hi Danilo,

kernel test robot noticed the following build errors:

[auto build test ERROR on 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0]

url:    https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/rust-add-abstraction-for-struct-device/20240611-020558
base:   1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
patch link:    https://lore.kernel.org/r/20240610180318.72152-3-dakr%40redhat.com
patch subject: [PATCH v2 2/2] rust: add firmware abstractions
config: x86_64-randconfig-012-20240612 (https://download.01.org/0day-ci/archive/20240612/202406121959.hSkfmD0s-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240612/202406121959.hSkfmD0s-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/202406121959.hSkfmD0s-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
   --> rust/doctests_kernel_generated.rs:373:65
   |
   370 | fn main() { #[allow(non_snake_case)] fn _doctest_main__kbuild_src_consumer_rust_kernel_firmware_rs_27_0() {
   |                                      -------------------------------------------------------------------- this function should return `Result` or `Option` to accept `?`
   ...
   373 | let fw = Firmware::request("path/to/firmware.bin", dev.as_ref())?;
   |                                                                 ^ cannot use the `?` operator in a function that returns `()`
   |
>> = help: the trait `FromResidual<core::result::Result<Infallible, rust_doctest_kernel_build_assert_rs_0::kernel::error::Error>>` is not implemented for `()`
--
>> error[E0425]: cannot find function `driver_load_firmware` in this scope
   --> rust/doctests_kernel_generated.rs:374:1
   |
   374 | driver_load_firmware(fw.data());
   | ^^^^^^^^^^^^^^^^^^^^ not found in this scope

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH v2 2/2] rust: add firmware abstractions
       [not found] <20240610180318.72152-3-dakr@redhat.com>
  2024-06-12 11:32 ` [PATCH v2 2/2] rust: add firmware abstractions kernel test robot
@ 2024-06-13  3:36 ` kernel test robot
  1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2024-06-13  3:36 UTC (permalink / raw)
  To: Danilo Krummrich; +Cc: llvm, oe-kbuild-all

Hi Danilo,

kernel test robot noticed the following build errors:

[auto build test ERROR on 1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0]

url:    https://github.com/intel-lab-lkp/linux/commits/Danilo-Krummrich/rust-add-abstraction-for-struct-device/20240611-020558
base:   1613e604df0cd359cf2a7fbd9be7a0bcfacfabd0
patch link:    https://lore.kernel.org/r/20240610180318.72152-3-dakr%40redhat.com
patch subject: [PATCH v2 2/2] rust: add firmware abstractions
config: x86_64-rhel-8.3-rust (https://download.01.org/0day-ci/archive/20240613/202406131300.xHLArQd8-lkp@intel.com/config)
compiler: clang version 18.1.5 (https://github.com/llvm/llvm-project 617a15a9eac96088ae5e9134248d8236e34b91b1)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20240613/202406131300.xHLArQd8-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/202406131300.xHLArQd8-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0425]: cannot find value `dev` in this scope
   --> rust/doctests_kernel_generated.rs:373:52
   |
   373 | let fw = Firmware::request("path/to/firmware.bin", dev.as_ref())?;
   |                                                    ^^^ not found in this scope
--
>> error[E0308]: mismatched types
   --> rust/doctests_kernel_generated.rs:373:28
   |
   373 | let fw = Firmware::request("path/to/firmware.bin", dev.as_ref())?;
   |          ----------------- ^^^^^^^^^^^^^^^^^^^^^^ expected `&CStr`, found `&str`
   |          |
   |          arguments to this function are incorrect
   |
   = note: expected reference `&rust_doctest_kernel_build_assert_rs_0::kernel::prelude::CStr`
   found reference `&'static str`
   note: associated function defined here
   --> rust/kernel/firmware.rs:53:12
   |
   53  |     pub fn request(name: &CStr, dev: &Device) -> Result<Self> {
   |            ^^^^^^^
--
>> error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`)
   --> rust/doctests_kernel_generated.rs:373:65
   |
   370 | fn main() { #[allow(non_snake_case)] fn _doctest_main__kbuild_src_consumer_rust_kernel_firmware_rs_27_0() {
   |                                      -------------------------------------------------------------------- this function should return `Result` or `Option` to accept `?`
   ...
   373 | let fw = Firmware::request("path/to/firmware.bin", dev.as_ref())?;
   |                                                                 ^ cannot use the `?` operator in a function that returns `()`
   |
>> = help: the trait `FromResidual<core::result::Result<Infallible, rust_doctest_kernel_build_assert_rs_0::kernel::error::Error>>` is not implemented for `()`
--
>> error[E0425]: cannot find function `driver_load_firmware` in this scope
   --> rust/doctests_kernel_generated.rs:374:1
   |
   374 | driver_load_firmware(fw.data());
   | ^^^^^^^^^^^^^^^^^^^^ not found in this scope

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-06-13  3:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [not found] <20240610180318.72152-3-dakr@redhat.com>
2024-06-12 11:32 ` [PATCH v2 2/2] rust: add firmware abstractions kernel test robot
2024-06-13  3:36 ` 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;
as well as URLs for NNTP newsgroup(s).