Building the Linux kernel with Clang and LLVM
 help / color / mirror / Atom feed
* [linux-next:master 8233/11277] error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings`
@ 2024-11-13 21:15 kernel test robot
  2024-11-14  9:09 ` Alice Ryhl
  0 siblings, 1 reply; 2+ messages in thread
From: kernel test robot @ 2024-11-13 21:15 UTC (permalink / raw)
  To: Alice Ryhl; +Cc: llvm, oe-kbuild-all, Steven Rostedt (Google), Boqun Feng

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
head:   bd05b9a700c10473c2f52bf12c5c5938c30e80b0
commit: 91d39024e1b02914cc5e2dbc137908e29b269ce4 [8233/11277] rust: samples: add tracepoint to Rust sample
config: x86_64-randconfig-013-20241113 (https://download.01.org/0day-ci/archive/20241114/202411140520.VL33V6fD-lkp@intel.com/config)
compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140520.VL33V6fD-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/202411140520.VL33V6fD-lkp@intel.com/

All errors (new ones prefixed by >>):

>> error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings`
   --> samples/rust/rust_print.rs:87:5
   |
   87 | /     kernel::declare_trace! {
   88 | |         /// # Safety
   89 | |         ///
   90 | |         /// Always safe to call.
   91 | |         unsafe fn rust_sample_loaded(magic: c_int);
   92 | |     }
   | |_____^ not found in `$crate::bindings`
   |
   = note: this error originates in the macro `kernel::declare_trace` (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] 2+ messages in thread

* Re: [linux-next:master 8233/11277] error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings`
  2024-11-13 21:15 [linux-next:master 8233/11277] error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings` kernel test robot
@ 2024-11-14  9:09 ` Alice Ryhl
  0 siblings, 0 replies; 2+ messages in thread
From: Alice Ryhl @ 2024-11-14  9:09 UTC (permalink / raw)
  To: kernel test robot
  Cc: llvm, oe-kbuild-all, Steven Rostedt (Google), Boqun Feng,
	Miguel Ojeda

On Wed, Nov 13, 2024 at 10:16 PM kernel test robot <lkp@intel.com> wrote:
>
> tree:   https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git master
> head:   bd05b9a700c10473c2f52bf12c5c5938c30e80b0
> commit: 91d39024e1b02914cc5e2dbc137908e29b269ce4 [8233/11277] rust: samples: add tracepoint to Rust sample
> config: x86_64-randconfig-013-20241113 (https://download.01.org/0day-ci/archive/20241114/202411140520.VL33V6fD-lkp@intel.com/config)
> compiler: clang version 19.1.3 (https://github.com/llvm/llvm-project ab51eccf88f5321e7c60591c5546b254b6afab99)
> reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241114/202411140520.VL33V6fD-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/202411140520.VL33V6fD-lkp@intel.com/
>
> All errors (new ones prefixed by >>):
>
> >> error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings`
>    --> samples/rust/rust_print.rs:87:5
>    |
>    87 | /     kernel::declare_trace! {
>    88 | |         /// # Safety
>    89 | |         ///
>    90 | |         /// Always safe to call.
>    91 | |         unsafe fn rust_sample_loaded(magic: c_int);
>    92 | |     }
>    | |_____^ not found in `$crate::bindings`
>    |
>    = note: this error originates in the macro `kernel::declare_trace` (in Nightly builds, run with -Z macro-backtrace for more info)
>
> --
> 0-DAY CI Kernel Test Service
> https://github.com/intel/lkp-tests/wiki

Please see:
https://lore.kernel.org/rust-for-linux/20241111201607.653149-1-ojeda@kernel.org/
which is already in rust-next.

Alice

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

end of thread, other threads:[~2024-11-14  9:09 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-11-13 21:15 [linux-next:master 8233/11277] error[E0425]: cannot find function `rust_do_trace_rust_sample_loaded` in crate `$crate::bindings` kernel test robot
2024-11-14  9:09 ` Alice Ryhl

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox