diff options
| author | Gary Guo <gary@garyguo.net> | 2026-06-02 17:17:53 +0300 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2026-06-05 11:11:23 +0300 |
| commit | 4dda19120a93a559681205fe0476908d8356d52c (patch) | |
| tree | 5c60e05d8fbbb2bb8e9c50ff1641bc214dd64834 /include/linux/debugobjects.h | |
| parent | 735bc1c843101aa2383061acb73d3824c7a66e11 (diff) | |
| download | linux-4dda19120a93a559681205fe0476908d8356d52c.tar.xz | |
rust: ptr: use `match` instead of `unwrap_or_else` for `build_index`
Use `match` to avoid potential inlining issues of the `unwrap_or_else`
function.
Suggested-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/rust-for-linux/aeCKlut-88SbNsyW@google.com/
Signed-off-by: Gary Guo <gary@garyguo.net>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260602-projection-syntax-rework-v2-2-6989470f5440@garyguo.net
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'include/linux/debugobjects.h')
0 files changed, 0 insertions, 0 deletions
