Something went wrong. Try again.
Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
Something went wrong. Try again.
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>
Author Alexandre Courbot Committer Miguel Ojeda Date (Jan 19, 2026, 12:13 AM UTC) Commit
Copy SHA
Parent 1b18b37a 1b18b37a2c30f6e6698205a06de393f7e626f5d2