From: Danilo Krummrich <dakr@kernel.org>
To: Miguel Ojeda <ojeda@kernel.org>
Cc: "Alex Gaynor" <alex.gaynor@gmail.com>,
"Boqun Feng" <boqun.feng@gmail.com>,
"Gary Guo" <gary@garyguo.net>,
"Björn Roy Baron" <bjorn3_gh@protonmail.com>,
"Benno Lossin" <benno.lossin@proton.me>,
"Andreas Hindborg" <a.hindborg@kernel.org>,
"Alice Ryhl" <aliceryhl@google.com>,
"Trevor Gross" <tmgross@umich.edu>,
rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org
Subject: [GIT PULL] Rust ALLOC for v6.16
Date: Tue, 13 May 2025 12:00:03 +0200 [thread overview]
Message-ID: <aCMYI-phNWE1PZGz@pollux> (raw)
Hi Miguel,
Please pull the following ALLOC changes.
Most of them are new methods for Vec, required by binder and nova-core.
All commits have been in linux-next for at least a few days -- no conflicts
expected.
- Danilo
The following changes since commit 0af2f6be1b4281385b618cb86ad946eded089ac8:
Linux 6.15-rc1 (2025-04-06 13:11:33 -0700)
are available in the Git repository at:
https://github.com/Rust-for-Linux/linux.git tags/alloc-next-v6.16-2025-05-13
for you to fetch changes up to 771c5a7d9843643b035938624050e7769133b9cc:
rust: alloc: add Vec::insert_within_capacity (2025-05-07 18:40:45 +0200)
----------------------------------------------------------------
Alloc changes for v6.16
Box:
- support for type coercion, e.g. `Box<T>` to `Box<dyn U>` if T
implements U
Vec:
- implement new methods (prerequisites for nova-core and binder)
- Vec::truncate()
- Vec::resize()
- Vec::clear()
- Vec::pop()
- Vec::push_within_capacity()
- new error type: PushError
- Vec::drain_all()
- Vec::retain()
- Vec::remove()
- new error type: RemoveError
- Vec::insert_within_capacity
- new error type: InsertError
- simplify Vec::push() using Vec::spare_capacity_mut()
- split Vec::set_len() into Vec::inc_len() and Vec::dec_len()
- add type invariant Vec::len() <= Vec::capacity
- simplify Vec::truncate() using Vec::dec_len()
----------------------------------------------------------------
Alexandre Courbot (1):
rust: alloc: allow coercion from `Box<T>` to `Box<dyn U>` if T implements U
Alice Ryhl (7):
rust: alloc: add Vec::clear
rust: alloc: add Vec::pop
rust: alloc: add Vec::push_within_capacity
rust: alloc: add Vec::drain_all
rust: alloc: add Vec::retain
rust: alloc: add Vec::remove
rust: alloc: add Vec::insert_within_capacity
Andrew Ballance (2):
rust: alloc: add Vec::truncate method
rust: alloc: add Vec::resize method
Danilo Krummrich (1):
rust: alloc: add missing invariant in Vec::set_len()
Tamir Duberstein (5):
rust: alloc: use `spare_capacity_mut` to reduce unsafe
rust: alloc: add Vec::len() <= Vec::capacity invariant
rust: alloc: add `Vec::dec_len`
rust: alloc: refactor `Vec::truncate` using `dec_len`
rust: alloc: replace `Vec::set_len` with `inc_len`
rust/kernel/alloc/kbox.rs | 40 ++++++++++-
rust/kernel/alloc/kvec.rs | 430 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++--------
rust/kernel/alloc/kvec/errors.rs | 61 +++++++++++++++++
rust/kernel/str.rs | 2 +-
rust/kernel/uaccess.rs | 2 +-
5 files changed, 506 insertions(+), 29 deletions(-)
create mode 100644 rust/kernel/alloc/kvec/errors.rs
next reply other threads:[~2025-05-13 10:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-13 10:00 Danilo Krummrich [this message]
2025-05-18 20:49 ` [GIT PULL] Rust ALLOC for v6.16 Miguel Ojeda
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aCMYI-phNWE1PZGz@pollux \
--to=dakr@kernel.org \
--cc=a.hindborg@kernel.org \
--cc=alex.gaynor@gmail.com \
--cc=aliceryhl@google.com \
--cc=benno.lossin@proton.me \
--cc=bjorn3_gh@protonmail.com \
--cc=boqun.feng@gmail.com \
--cc=gary@garyguo.net \
--cc=linux-kernel@vger.kernel.org \
--cc=ojeda@kernel.org \
--cc=rust-for-linux@vger.kernel.org \
--cc=tmgross@umich.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.