diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2026-03-25 18:38:47 -0700 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-04-03 11:57:35 +0200 |
| commit | 0a51b384e0decfe9dfe65d721a5e9cd39cabc152 (patch) | |
| tree | 305cc707719ddca5307408ddd6cfbfca16ce5c0a /rust/kernel/alloc | |
| parent | 7ccef29b5d93d6e235dc8ace27cfbbfbbede9908 (diff) | |
rust: ptr: add const_align_up()
Add const_align_up() to kernel::ptr as the const-compatible equivalent
of Alignable::align_up().
Suggested-by: Danilo Krummrich <dakr@kernel.org>
Suggested-by: Gary Guo <gary@garyguo.net>
Suggested-by: Miguel Ojeda <ojeda@kernel.org>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Link: https://patch.msgid.link/20260326013902.588242-17-jhubbard@nvidia.com
[ Adjusted imports style. - Miguel ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/alloc')
0 files changed, 0 insertions, 0 deletions
