From: kernel test robot <lkp@intel.com>
To: "Thomas Weißschuh " <linux@weissschuh.net>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev
Subject: [thomas-weissschuh:b4/rust-dyndbg 15/15] error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
Date: Fri, 02 Oct 2026 15:21:22 +0800 [thread overview]
Message-ID: <202610021540.mJ8YCCMD-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/rust-dyndbg
head: e0f643bcb55eadaa7c1b9d23ea0569cf7b5377a8
commit: e0f643bcb55eadaa7c1b9d23ea0569cf7b5377a8 [15/15] rust: device: enable dynamic debug for dev_dbg!()
config: x86_64-buildonly-randconfig-1003-20261002 (https://download.01.org/0day-ci/archive/20261002/202610021540.mJ8YCCMD-lkp@intel.com/config)
compiler: clang version 22.1.3 (https://github.com/llvm/llvm-project e9846648fd6183ee6d8cbdb4502213fcf902a211)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261002/202610021540.mJ8YCCMD-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/202610021540.mJ8YCCMD-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> drivers/gpu/nova-core/firmware/gsp.rs:77:79
|
77 | dev_dbg!(dev, "loaded gsp firmware v{}\n", tlv.get_string(b"VERS")?);
| ^ cannot use the `?` operator in a closure that returns `()`
|
::: rust/kernel/dynamic_debug.rs:227:72
|
227 | $crate::dynamic_func_call!($crate::__format_string!($($arg)+), || {
| -- this function should return `Result` or `Option` to accept `?`
--
>> error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> drivers/gpu/nova-core/firmware/booter.rs:100:36
|
100 | tlv.get_string(b"VERS")?
| ^ cannot use the `?` operator in a closure that returns `()`
|
::: rust/kernel/dynamic_debug.rs:227:72
|
227 | $crate::dynamic_func_call!($crate::__format_string!($($arg)+), || {
| -- this function should return `Result` or `Option` to accept `?`
--
>> error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> drivers/gpu/nova-core/firmware/fsp.rs:53:75
|
53 | dev_dbg!(dev, "loaded fsp firmware v{}\n", tlv.get_string(b"VERS")?);
| ^ cannot use the `?` operator in a closure that returns `()`
|
::: rust/kernel/dynamic_debug.rs:227:72
|
227 | $crate::dynamic_func_call!($crate::__format_string!($($arg)+), || {
| -- this function should return `Result` or `Option` to accept `?`
--
>> error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> drivers/gpu/nova-core/firmware/fwsec/bootloader.rs:129:36
|
129 | tlv.get_string(b"VERS")?
| ^ cannot use the `?` operator in a closure that returns `()`
|
::: rust/kernel/dynamic_debug.rs:227:72
|
227 | $crate::dynamic_func_call!($crate::__format_string!($($arg)+), || {
| -- this function should return `Result` or `Option` to accept `?`
--
>> error[E0277]: the `?` operator can only be used in a closure that returns `Result` or `Option` (or another type that implements `FromResidual`)
--> drivers/gpu/nova-core/firmware/riscv.rs:36:36
|
36 | tlv.get_string(b"VERS")?
| ^ cannot use the `?` operator in a closure that returns `()`
|
::: rust/kernel/dynamic_debug.rs:227:72
|
227 | $crate::dynamic_func_call!($crate::__format_string!($($arg)+), || {
| -- this function should return `Result` or `Option` to accept `?`
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-02 7:21 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202610021540.mJ8YCCMD-lkp@intel.com \
--to=lkp@intel.com \
--cc=linux@weissschuh.net \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.