* Re: [PATCH v4] rust: introduce sfile macro for succinct code tracing
[not found] <20250616193433.2643407-1-ttabi@nvidia.com>
@ 2025-06-18 11:20 ` kernel test robot
0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-06-18 11:20 UTC (permalink / raw)
To: Timur Tabi, Miguel Ojeda, Benno Lossin, Alice Ryhl,
Danilo Krummrich, rust-for-linux
Cc: llvm, oe-kbuild-all
Hi Timur,
kernel test robot noticed the following build errors:
[auto build test ERROR on 27605c8c0f69e319df156b471974e4e223035378]
url: https://github.com/intel-lab-lkp/linux/commits/Timur-Tabi/rust-introduce-sfile-macro-for-succinct-code-tracing/20250617-034332
base: 27605c8c0f69e319df156b471974e4e223035378
patch link: https://lore.kernel.org/r/20250616193433.2643407-1-ttabi%40nvidia.com
patch subject: [PATCH v4] rust: introduce sfile macro for succinct code tracing
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20250618/202506181849.TxpYI9gO-lkp@intel.com/config)
compiler: clang version 18.1.8 (https://github.com/llvm/llvm-project 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff)
rustc: rustc 1.78.0 (9b00956e5 2024-04-29)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250618/202506181849.TxpYI9gO-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/202506181849.TxpYI9gO-lkp@intel.com/
All errors (new ones prefixed by >>):
>> error[E0432]: unresolved import `kernel::print::rfind_const`
--> rust/doctests_kernel_generated.rs:7755:5
|
7755 | use kernel::print::rfind_const;
| ^^^^^^^^^^^^^^^^^^^^^^^^^^ no `rfind_const` in `print`
--
>> error[E0308]: mismatched types
--> rust/doctests_kernel_generated.rs:5834:29
|
5834 | const SFILE: &'static str = sfile!();
| ^^^^^^^^
| |
| expected `&str`, found `&CStr`
| arguments to this function are incorrect
|
= note: expected reference `&str`
found reference `&'static rust_doctest_kernel_alloc_kbox_rs_7::kernel::prelude::CStr`
note: method defined here
--> /opt/cross/rustc-1.78.0-bindgen-0.65.1/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/str/mod.rs:2446:18
|
2446 | pub const fn is_ascii(&self) -> bool {
| ^^^^^^^^
= note: this error originates in the macro `sfile` (in Nightly builds, run with -Z macro-backtrace for more info)
--
>> error[E0308]: mismatched types
--> rust/doctests_kernel_generated.rs:5833:20
|
5833 | pr_err!("{}:{}n", sfile!(), line!());
| ^^^^^^^^
| |
| expected `&str`, found `&CStr`
| arguments to this function are incorrect
|
= note: expected reference `&str`
found reference `&'static rust_doctest_kernel_alloc_kbox_rs_7::kernel::prelude::CStr`
note: method defined here
--> /opt/cross/rustc-1.78.0-bindgen-0.65.1/rustup/toolchains/1.78.0-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/str/mod.rs:2446:18
|
2446 | pub const fn is_ascii(&self) -> bool {
| ^^^^^^^^
= note: this error originates in the macro `sfile` (in Nightly builds, run with -Z macro-backtrace for more info)
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] only message in thread