Skip to content

Commit b6879ea

Browse files
committed
rust: add UnsafePinned type
This version now only has the kernel implementation without the config flag for using the upstream version. Additionally now commits for using `UnsafePinned` in `Opaque` were added. Checkpatch warns about `rust/kernel/types/unsafe_pinned.rs` missing a MAINTAINERS entry, I don't think that is necessary since it will be part of the `RUST` entry anyways (from what I understand). Once this has had some time to review I'll rebase my `miscdevice` patches [0] on top of this. This patchset depends on the `pin-init` sync for v6.16 [1]. Link: https://lore.kernel.org/rust-for-linux/20250131-b4-rust_miscdevice_registrationdata-v2-0-588f1e6cfabe@gmail.com/ [0] Link: https://lore.kernel.org/rust-for-linux/20250421221728.528089-1-benno.lossin@proton.me [1] # 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> Cc: linux-kernel@vger.kernel.org Cc: rust-for-linux@vger.kernel.org Signed-off-by: Christian Schrefl <chrisi.schrefl@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": 2, "change-id": "20250418-rust_unsafe_pinned-891dce27418d", "prefixes": [], "history": { "v1": [ "20250418-rust_unsafe_pinned-v1-1-c4c7558399f8@gmail.com" ] }, "prerequisites": [ "message-id: <20250421221728.528089-1-benno.lossin@proton.me>", "base-commit: 39051ad" ] } }
1 parent 1351bab commit b6879ea

File tree

0 file changed

+0
-0
lines changed

    0 file changed

    +0
    -0
    lines changed

    0 commit comments

    Comments
     (0)