123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- #include <linux/bug.h>
- #include <linux/build_bug.h>
- __noreturn void rust_helper_BUG(void)
- {
- BUG();
- }
- EXPORT_SYMBOL_GPL(rust_helper_BUG);
- static_assert(
- sizeof(size_t) == sizeof(uintptr_t) &&
- __alignof__(size_t) == __alignof__(uintptr_t),
- "Rust code expects C `size_t` to match Rust `usize`"
- );
|