diff options
author | Andrew Ballance <andrewjballance@gmail.com> | 2025-03-16 14:16:43 +0300 |
---|---|---|
committer | Danilo Krummrich <dakr@kernel.org> | 2025-04-07 15:41:10 +0300 |
commit | 1679b7159379d11100e4ab7d1de23c8cd7765aa1 (patch) | |
tree | f423ddbae8a3601429ecbe0b7c906ad8d18c751c /scripts/lib/kdoc/kdoc_parser.py | |
parent | 81e1c4dab5d0c508907722f18b028102454d52e6 (diff) | |
download | linux-1679b7159379d11100e4ab7d1de23c8cd7765aa1.tar.xz |
rust: alloc: add Vec::resize method
Implement the equivalent of the rust std's Vec::resize on the kernel's
Vec type.
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Tamir Duberstein <tamird@gmail.com>
Link: https://lore.kernel.org/r/20250316111644.154602-3-andrewjballance@gmail.com
Signed-off-by: Andrew Ballance <andrewjballance@gmail.com>
[ Use checked_sub(), as suggested by Tamir. - Danilo ]
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions