Searched refs:build_assert (Results 1 – 18 of 18) sorted by relevance
| /linux/rust/kernel/sync/ |
| H A D | locked_by.rs | 6 use crate::build_assert; 103 build_assert!( in new() 129 build_assert!( in access() 158 build_assert!( in access_mut()
|
| H A D | refcount.rs | 7 use crate::build_assert; 29 build_assert!(value >= 0, "initial value saturated"); in new()
|
| /linux/rust/kernel/ |
| H A D | bits.rs | 33 build_assert!(n < <$ty>::BITS); 85 build_assert!(start <= end);
|
| H A D | build_assert.rs | 8 //! - [`build_assert!`] 22 //! [`build_assert!`]. The same is true regardless if the function is `const fn`. 27 //! // `const_assert!` and `build_assert!` cannot be used here, they will fail to compile. 33 //! build_assert!(core::mem::size_of::<u8>() == 1); // Discouraged. 37 //! build_assert!(N > 1); // Discouraged. 41 //! build_assert!(v > 1); // Works. 58 //! `build_assert!()` is equivalent to `BUILD_BUG_ON`. It is even more powerful than 65 build_assert, 85 /// generics, use [`const_assert!`]; if you need to refer to variables, use [`build_assert!`]. See 122 /// capability, use [`build_assert!`] 73 macro_rules! build_assert { global() macro [all...] |
| H A D | xarray.rs | 8 alloc, bindings, build_assert, 234 build_assert!( in store()
|
| H A D | i2c.rs | 47 build_assert!(src.len() <= Self::I2C_NAME_SIZE, "ID exceeds 20 bytes"); in new() 113 build_assert!( in register() 443 build_assert!(src.len() <= Self::I2C_TYPE_SIZE, "Type exceeds 20 bytes"); in new()
|
| H A D | prelude.rs | 73 build_assert,
|
| H A D | lib.rs | 52 pub mod build_assert; module
|
| H A D | io.rs | 723 build_assert!(offset_valid::<U>(offset, Self::MIN_SIZE)); in io_addr_assert()
|
| H A D | cpufreq.rs | 1024 build_assert!(src.len() <= CPUFREQ_NAME_LEN);
|
| /linux/rust/kernel/net/phy/ |
| H A D | reg.rs | 12 use crate::build_assert; 94 build_assert!( in vendor_specific()
|
| /linux/Documentation/translations/zh_CN/rust/ |
| H A D | testing.rst | 77 # rust_doctest_kernel_build_assert_rs_0.location: rust/kernel/build_assert.rs:13 79 # rust_doctest_kernel_build_assert_rs_1.location: rust/kernel/build_assert.rs:56
|
| /linux/rust/kernel/irq/ |
| H A D | flags.rs | 102 build_assert!(value as u64 <= c_ulong::MAX as u64); in new()
|
| /linux/rust/kernel/io/ |
| H A D | resource.rs | 232 crate::build_assert!(value as u64 <= c_ulong::MAX as u64); in new()
|
| /linux/Documentation/rust/ |
| H A D | testing.rst | 80 # rust_doctest_kernel_build_assert_rs_0.location: rust/kernel/build_assert.rs:13 82 # rust_doctest_kernel_build_assert_rs_1.location: rust/kernel/build_assert.rs:56
|
| /linux/rust/kernel/list/ |
| H A D | arc.rs | 255 build_assert!(ID != ID2); in pair_from_pin_unique()
|
| /linux/rust/kernel/num/ |
| H A D | bounded.rs | 336 /// This relies on [`build_assert!`] and guaranteed optimization to perform validation at in try_new() 364 // Always inline to optimize out error path of `build_assert`. 367 crate::build_assert!(
|
| /linux/lib/ |
| H A D | Kconfig.debug | 3586 Controls how `build_error!` and `build_assert!` are handled during the build.
|