]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: ptr: replace unneeded use of `build_assert`
authorAlexandre Courbot <acourbot@nvidia.com>
Tue, 16 Dec 2025 08:24:49 +0000 (17:24 +0900)
committerMiguel Ojeda <ojeda@kernel.org>
Mon, 19 Jan 2026 00:13:22 +0000 (01:13 +0100)
commit84b1b49eccb79ec2e4aaa45116fffb2ac61b876c
tree264e8227c0190d45e8d57dc34f38356be3a06807
parent1b18b37a2c30f6e6698205a06de393f7e626f5d2
rust: ptr: replace unneeded use of `build_assert`

Since `ALIGN` is a const parameter, this assertion can be done in const
context using the `assert!` macro.

Suggested-by: Alice Ryhl <aliceryhl@google.com>
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20251216-ptr_assert-v1-1-d8b2d5c5741d@nvidia.com
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/ptr.rs