mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 06:04:44 +01:00
For arm32, on a x86_64 builder, running the `rusttest` target yields:
error[E0080]: evaluation of constant value failed
--> rust/kernel/static_assert.rs:37:23
|
37 | const _: () = ::core::assert!($condition $(,$arg)?);
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ the evaluated program panicked at 'assertion failed: size_of::<isize>() == size_of::<isize_atomic_repr>()', rust/kernel/sync/atomic/predefine.rs:68:1
|
::: rust/kernel/sync/atomic/predefine.rs:68:1
|
68 | static_assert!(size_of::<isize>() == size_of::<isize_atomic_repr>());
| -------------------------------------------------------------------- in this macro invocation
|
= note: this error originates in the macro `::core::assert` which comes from the expansion of the macro `static_assert` (in Nightly builds, run with -Z macro-backtrace for more info)
The reason is that `rusttest` runs on the host, so for e.g. a x86_64
builder `isize` is 64 bits but it is not a `CONFIG_64BIT` build.
Fix it by providing a stub for `rusttest` as usual.
Fixes:
|
||
|---|---|---|
| .. | ||
| arc | ||
| atomic | ||
| lock | ||
| arc.rs | ||
| aref.rs | ||
| atomic.rs | ||
| barrier.rs | ||
| completion.rs | ||
| condvar.rs | ||
| lock.rs | ||
| locked_by.rs | ||
| poll.rs | ||
| rcu.rs | ||
| refcount.rs | ||
| set_once.rs | ||