* [thomas-weissschuh:b4/rust-dyndbg 14/15] error: expected expression, found `let` statement
@ 2026-10-03 11:29 kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-03 11:29 UTC (permalink / raw)
To: Thomas Weißschuh ; +Cc: llvm, oe-kbuild-all
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-03 11:30 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-03 11:29 [thomas-weissschuh:b4/rust-dyndbg 14/15] error: expected expression, found `let` statement kernel test robot
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.