Skip to contentSkip to conversation

Rust fixes for 6.14 (3rd)

GIT PULL Merged Miguel Ojeda 2 participants 2 messages Mar 15, 2025 – Mar 16, 2025 Rust

lore
Share & tools
lore

Miguel Ojeda

author maintainer
#0 lore raw

Hi Linus,

Please pull these fixes for Rust (third round).

All commits have been in linux-next for at least two rounds.

No conflicts expected.

Thanks!

Cheers,
Miguel

The following changes since commit 7eb172143d5508b4da468ed59ee857c6e5e01da6:

Linux 6.14-rc5 (2025-03-02 11:48:20 -0800)

are available in the Git repository at:

https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-6.14-3

for you to fetch changes up to a1eb95d6b5f4cf5cc7b081e85e374d1dd98a213b:

scripts: generate_rust_analyzer: add uapi crate (2025-03-12 00:13:07 +0100)

----------------------------------------------------------------
Rust fixes for v6.14 (3rd)

Toolchain and infrastructure:

- Disallow BTF generation with Rust + LTO.

- Improve rust-analyzer support.

'kernel' crate:

- 'init' module: remove 'Zeroable' implementation for a couple types that should not have it.

- 'alloc' module: fix macOS failure in host test by satisfying POSIX alignment requirement.

- Add missing '\n's to 'pr_*!()' calls.

And a couple other minor cleanups.

----------------------------------------------------------------
Alban Kurti (5):
rust: docs: add missing newline to printing macro examples
rust: error: add missing newline to pr_warn! calls
rust: init: add missing newline to pr_info! calls
rust: sync: add missing newline in locked_by log example
rust: workqueue: add missing newline to pr_info! examples

Benno Lossin (1):
rust: init: fix Zeroable implementation for Option<NonNull<T>> and Option<KBox<T>>

Matthew Maurer (1):
rust: Disallow BTF generation with Rust + LTO

Miguel Ojeda (1):
rust: remove leftover mentions of the alloc crate

Panagiotis Foliadis (1):
rust: task: fix SAFETY comment in Task::wake_up

Tamir Duberstein (4):
rust: alloc: satisfy POSIX alignment requirement
scripts: generate_rust_analyzer: add missing macros deps
scripts: generate_rust_analyzer: add missing include_dirs
scripts: generate_rust_analyzer: add uapi crate

 Documentation/rust/quick-start.rst  |  2 +-
 Documentation/rust/testing.rst      |  2 +-
 init/Kconfig                        |  2 +-
 rust/kernel/alloc/allocator_test.rs | 18 ++++++++++
 rust/kernel/error.rs                |  2 +-
 rust/kernel/init.rs                 | 23 ++++++------
 rust/kernel/init/macros.rs          |  6 ++--
 rust/kernel/lib.rs                  |  2 +-
 rust/kernel/sync/locked_by.rs       |  2 +-
 rust/kernel/task.rs                 |  2 +-
 rust/kernel/workqueue.rs            |  6 ++--
 scripts/generate_rust_analyzer.py   | 71 ++++++++++++++++++++++---------------
 scripts/rustdoc_test_gen.rs         |  4 +--
 13 files changed, 85 insertions(+), 57 deletions(-)
merge bot Merged
#1 lore raw
The pull request you sent on Sat, 15 Mar 2025 22:22:32 +0100:

The pull request you sent on Sat, 15 Mar 2025 22:22:32 +0100:

Quoted 1 line

https://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux.git tags/rust-fixes-6.14-3

has been merged into torvalds/linux.git:
https://git.kernel.org/torvalds/c/cd3a56ac2d132beea747f7b41cc085c82fe2eac0

Thank you!

Signature · 2 lines
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/prtracker.html