diff options
| author | Alice Ryhl <[email protected]> | 2025-02-10 09:53:35 +0000 |
|---|---|---|
| committer | Miguel Ojeda <[email protected]> | 2025-03-08 21:35:34 +0000 |
| commit | 998c65733b95e8de45cbc10aa8d69652d15fa9d3 (patch) | |
| tree | 7630a96deea4a3901ce5d7225bcea3f97edb7734 /lib/test_fortify/write_overflow-strscpy.c | |
| parent | rust: task: make Pid type alias public (diff) | |
| download | kernel-998c65733b95e8de45cbc10aa8d69652d15fa9d3.tar.gz kernel-998c65733b95e8de45cbc10aa8d69652d15fa9d3.zip | |
rust: list: extract common code for insertion
To prepare for a new cursor API that has the ability to insert elements
into the list, extract the common code needed for this operation into a
new `insert_inner` method.
Both `push_back` and `push_front` are updated to use the new function.
Reviewed-by: Andreas Hindborg <[email protected]>
Reviewed-by: Boqun Feng <[email protected]>
Signed-off-by: Alice Ryhl <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Miguel Ojeda <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strscpy.c')
0 files changed, 0 insertions, 0 deletions
