[GIT PULL] Rust fixes for 6.14 (3rd)
From: Miguel Ojeda
Date: Sat Mar 15 2025 - 17:22:54 EST
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(-)