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 14/15] error: expected expression, found `let` statement
Date: Sat, 03 Oct 2026 13:29:47 +0200 [thread overview]
Message-ID: <202610031358.rujOiXGc-lkp@intel.com> (raw)
tree: https://git.kernel.org/pub/scm/linux/kernel/git/thomas.weissschuh/linux.git b4/rust-dyndbg
head: 455dc868b8bce1724156c72696d8df25e44aeee3
commit: 37f2c7cb7f50692279e993451b69b94856c115d3 [14/15] rust: device: remove logging methods
config: um-randconfig-2000-20261003 (https://download.01.org/0day-ci/archive/20261003/202610031358.rujOiXGc-lkp@intel.com/config)
compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project d7e4505dd447d115d85fdea45cd71030ac1d86ee)
rustc: rustc 1.96.0 (ac68faa20 2026-05-25)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261003/202610031358.rujOiXGc-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/202610031358.rujOiXGc-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:812:9
|
810 | macro_rules! dev_warn {
| --------------------- in this expansion of `dev_warn!`
811 | ($dev:expr, $($f:tt)*) => {
812 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/fb.rs:81:17
|
81 | / dev_warn!(
82 | | &self.device,
83 | | "failed to unregister sysmem flush page: {:?}\n",
84 | | e
85 | | )
| |_________________- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
--
>> error: macro expansion ignores keyword `let` and any tokens following
--> rust/kernel/device.rs:813:9
|
813 | let args = $crate::prelude::fmt!($($f)*);
| ^^^
|
::: drivers/gpu/nova-core/fb.rs:81:17
|
81 | / dev_warn!(
82 | | &self.device,
83 | | "failed to unregister sysmem flush page: {:?}\n",
84 | | e
85 | | )
| |_________________- caused by the macro expansion here
|
= note: the usage of `dev_warn!` is likely invalid in expression context
help: you might be missing a semicolon here
--> drivers/gpu/nova-core/fb.rs:85:18
|
85 | );
| +
--
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:781:9
|
779 | macro_rules! dev_err {
| -------------------- in this expansion of `dev_err!`
780 | ($dev:expr, $($f:tt)*) => {
781 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/firmware/fwsec.rs:397:30
|
397 | .inspect_err(|e| dev_err!(dev, "Failed to load FWSEC firmware: {:?}\n", e))?;
| --------------------------------------------------------- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
--
>> error: macro expansion ignores keyword `let` and any tokens following
--> rust/kernel/device.rs:782:9
|
782 | let args = $crate::prelude::fmt!($($f)*);
| ^^^
|
::: drivers/gpu/nova-core/firmware/fwsec.rs:397:30
|
397 | .inspect_err(|e| dev_err!(dev, "Failed to load FWSEC firmware: {:?}\n", e))?;
| --------------------------------------------------------- caused by the macro expansion here
|
= note: the usage of `dev_err!` is likely invalid in expression context
help: you might be missing a semicolon here
--> drivers/gpu/nova-core/firmware/fwsec.rs:397:87
|
397 | .inspect_err(|e| dev_err!(dev, "Failed to load FWSEC firmware: {:?}\n", e);)?;
| +
--
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:781:9
|
779 | macro_rules! dev_err {
| -------------------- in this expansion of `dev_err!`
780 | ($dev:expr, $($f:tt)*) => {
781 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/firmware/fwsec.rs:400:30
|
400 | .inspect_err(|e| dev_err!(dev, "Failed to boot FWSEC firmware: {:?}\n", e))?;
| --------------------------------------------------------- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
--
>> error: macro expansion ignores keyword `let` and any tokens following
--> rust/kernel/device.rs:782:9
|
782 | let args = $crate::prelude::fmt!($($f)*);
| ^^^
|
::: drivers/gpu/nova-core/firmware/fwsec.rs:400:30
|
400 | .inspect_err(|e| dev_err!(dev, "Failed to boot FWSEC firmware: {:?}\n", e))?;
| --------------------------------------------------------- caused by the macro expansion here
|
= note: the usage of `dev_err!` is likely invalid in expression context
help: you might be missing a semicolon here
--> drivers/gpu/nova-core/firmware/fwsec.rs:400:87
|
400 | .inspect_err(|e| dev_err!(dev, "Failed to boot FWSEC firmware: {:?}\n", e);)?;
| +
--
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:781:9
|
779 | macro_rules! dev_err {
| -------------------- in this expansion of `dev_err!`
780 | ($dev:expr, $($f:tt)*) => {
781 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/gpu.rs:321:30
|
321 | .inspect_err(|e| dev_err!(device, "failed to unload GSP: {:?}\n", e));
| --------------------------------------------------- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
--
>> error: macro expansion ignores keyword `let` and any tokens following
--> rust/kernel/device.rs:782:9
|
782 | let args = $crate::prelude::fmt!($($f)*);
| ^^^
|
::: drivers/gpu/nova-core/gpu.rs:321:30
|
321 | .inspect_err(|e| dev_err!(device, "failed to unload GSP: {:?}\n", e));
| --------------------------------------------------- caused by the macro expansion here
|
= note: the usage of `dev_err!` is likely invalid in expression context
help: you might be missing a semicolon here
--> drivers/gpu/nova-core/gpu.rs:321:81
|
321 | .inspect_err(|e| dev_err!(device, "failed to unload GSP: {:?}\n", e););
| +
--
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:781:9
|
779 | macro_rules! dev_err {
| -------------------- in this expansion of `dev_err!`
780 | ($dev:expr, $($f:tt)*) => {
781 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/gpu.rs:347:38
|
347 | .inspect_err(|_| dev_err!(dev, "GFW boot did not complete\n"))?;
| -------------------------------------------- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
--
>> error: macro expansion ignores keyword `let` and any tokens following
--> rust/kernel/device.rs:782:9
|
782 | let args = $crate::prelude::fmt!($($f)*);
| ^^^
|
::: drivers/gpu/nova-core/gpu.rs:347:38
|
347 | .inspect_err(|_| dev_err!(dev, "GFW boot did not complete\n"))?;
| -------------------------------------------- caused by the macro expansion here
|
= note: the usage of `dev_err!` is likely invalid in expression context
help: you might be missing a semicolon here
--> drivers/gpu/nova-core/gpu.rs:347:82
|
347 | .inspect_err(|_| dev_err!(dev, "GFW boot did not complete\n");)?;
| +
--
>> error: expected expression, found `let` statement
--> rust/kernel/device.rs:874:9
|
872 | macro_rules! dev_info {
| --------------------- in this expansion of `dev_info!`
873 | ($dev:expr, $($f:tt)*) => {
874 | let dev = &$dev;
| ^^^
|
::: drivers/gpu/nova-core/gpu.rs:393:33
|
393 | Ok(name) => dev_info!(dev, "GPU name: {}\n", name),
| -------------------------------------- in this macro invocation
|
= note: only supported directly in conditions of `if` and `while` expressions
..
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-03 11:30 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=202610031358.rujOiXGc-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.