Commit 212bccc
committed
rust: add
I've finally got some time to work on linux again, so I'm resending this
patchset. I've updated it to match the upstream changes and added patches
to use it in `DevRes`.
This patchset is based on the v6.18 tag.
# Describe the purpose of this series. The information you put here
# will be used by the project maintainer to make a decision whether
# your patches should be reviewed, and in what priority order. Please be
# very detailed and link to any relevant discussions or sites that the
# maintainer can review to better understand your proposed changes. If you
# only have a single patch in your series, the contents of the cover
# letter will be appended to the "under-the-cut" portion of the patch.
# Lines starting with # will be removed from the cover letter. You can
# use them to add notes or reminders to yourself. If you want to use
# markdown headers in your cover letter, start the line with ">#".
# You can add trailers to the cover letter. Any email addresses found in
# these trailers will be added to the addresses specified/generated
# during the b4 send stage. You can also run "b4 prep --auto-to-cc" to
# auto-populate the To: and Cc: trailers based on the code being
# modified.
To: Sky <sky@sky9.dev>
To: Miguel Ojeda <ojeda@kernel.org>
To: Alex Gaynor <alex.gaynor@gmail.com>
To: Boqun Feng <boqun.feng@gmail.com>
To: Gary Guo <gary@garyguo.net>
To: Björn Roy Baron <bjorn3_gh@protonmail.com>
To: Benno Lossin <benno.lossin@proton.me>
To: Andreas Hindborg <a.hindborg@kernel.org>
To: Alice Ryhl <aliceryhl@google.com>
To: Trevor Gross <tmgross@umich.edu>
To: Danilo Krummrich <dakr@kernel.org>
To: Gerald Wisböck <gerald.wisboeck@feather.ink>
To: Nathan Chancellor <nathan@kernel.org>
To: Nick Desaulniers <nick.desaulniers+lkml@gmail.com>
To: Bill Wendling <morbo@google.com>
To: Justin Stitt <justinstitt@google.com>
Cc: linux-kernel@vger.kernel.org
Cc: rust-for-linux@vger.kernel.org
Cc: llvm@lists.linux.dev
Signed-off-by: Christian Schrefl <chrisi.schrefl@gmail.com>
---
Changes in v5:
- Document that `UnsafePinned` now include `UnsafeCell` semantics.
- Update `UnsafePinned::get` docs and signature for `UnsafeCell` semantics.
- Rename `UnsafePinned::raw_get_mut` to `UnsafePinned::raw_get` to match
Upstream.
- Added a patch to also use this in `DevRes`.
- Dropped Sky's Co-Authored-By since some upstream changes from other
authors are now also included.
- Rebase ontop of v6.18
- Link to v4: https://lore.kernel.org/r/20250511-rust_unsafe_pinned-v4-0-a86c32e47e3d@gmail.com
Changes in v4:
- Reworked `UnsafePinned::add` doctest to not use get_mut_unchecked.
- Link to v3: https://lore.kernel.org/r/20250510-rust_unsafe_pinned-v3-0-57ce151123f9@gmail.com
Changes in v3:
- Dropped CONFIG_RUSTC_HAS_UNSAFE_PINNED and feature(unsafe_pinned) (Alice)
- Add comment to `Opaque` reasoning about included `UnsafeCell` (Benno)
- Small changes in commit message of Patch 3 (Benno)
- Removed docs mentioning not included functions (Benno)
- Removed docs mentioning implementation details and added that as
comment instead (Benno)
- Link to v2: https://lore.kernel.org/r/20250430-rust_unsafe_pinned-v2-0-fc8617a74024@gmail.com
Changes in v2:
- Expanded `UnsafePinned` documentation to describe differences
with upstream rust implementation.
- Removed config flag for using upstream `UnsafePinned` type.
- Add patch implementing `Wrapper` for `Opaque`
- Add patch for using `UnsafePinned` internally in `Opaque`
- Link to v1: https://lore.kernel.org/r/20250418-rust_unsafe_pinned-v1-1-c4c7558399f8@gmail.com
--- b4-submit-tracking ---
# This section is used internally by b4 prep for tracking purposes.
{
"series": {
"revision": 5,
"change-id": "20250418-rust_unsafe_pinned-891dce27418d",
"prefixes": [],
"history": {
"v1": [
"20250418-rust_unsafe_pinned-v1-1-c4c7558399f8@gmail.com"
],
"v2": [
"20250430-rust_unsafe_pinned-v2-0-fc8617a74024@gmail.com"
],
"v3": [
"20250510-rust_unsafe_pinned-v3-0-57ce151123f9@gmail.com"
],
"v4": [
"20250511-rust_unsafe_pinned-v4-0-a86c32e47e3d@gmail.com"
]
},
"prerequisites": []
}
}UnsafePinned type and use it in Opaque
1 parent 7d0a66e commit 212bccc
0 file changed
0 commit comments