* [PATCH] rust: remove leftover mentions of the `alloc` crate @ 2025-03-03 17:10 ` Miguel Ojeda 2025-03-03 17:28 ` Danilo Krummrich ` (2 more replies) 0 siblings, 3 replies; 4+ messages in thread From: Miguel Ojeda @ 2025-03-03 17:10 UTC (permalink / raw) To: Miguel Ojeda, Alex Gaynor Cc: Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel, patches, stable In commit 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") we stopped using the upstream `alloc` crate. Thus remove a few leftover mentions treewide. Cc: stable@vger.kernel.org # Also to 6.12.y after the `alloc` backport lands Fixes: 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") Signed-off-by: Miguel Ojeda <ojeda@kernel.org> --- Documentation/rust/quick-start.rst | 2 +- rust/kernel/lib.rs | 2 +- scripts/rustdoc_test_gen.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/Documentation/rust/quick-start.rst b/Documentation/rust/quick-start.rst index 4aa50e5fcb8c..6d2607870ba4 100644 --- a/Documentation/rust/quick-start.rst +++ b/Documentation/rust/quick-start.rst @@ -145,7 +145,7 @@ Rust standard library source **************************** The Rust standard library source is required because the build system will -cross-compile ``core`` and ``alloc``. +cross-compile ``core``. If ``rustup`` is being used, run:: diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 398242f92a96..7697c60b2d1a 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -6,7 +6,7 @@ //! usage by Rust code in the kernel and is shared by all of them. //! //! In other words, all the rest of the Rust code in the kernel (e.g. kernel -//! modules written in Rust) depends on [`core`], [`alloc`] and this crate. +//! modules written in Rust) depends on [`core`] and this crate. //! //! If you need a kernel C API that is not ported or wrapped yet here, then //! do so first instead of bypassing this crate. diff --git a/scripts/rustdoc_test_gen.rs b/scripts/rustdoc_test_gen.rs index 5ebd42ae4a3f..76aaa8329413 100644 --- a/scripts/rustdoc_test_gen.rs +++ b/scripts/rustdoc_test_gen.rs @@ -15,8 +15,8 @@ //! - Test code should be able to define functions and call them, without having to carry //! the context. //! -//! - Later on, we may want to be able to test non-kernel code (e.g. `core`, `alloc` or -//! third-party crates) which likely use the standard library `assert*!` macros. +//! - Later on, we may want to be able to test non-kernel code (e.g. `core` or third-party +//! crates) which likely use the standard library `assert*!` macros. //! //! For this reason, instead of the passed context, `kunit_get_current_test()` is used instead //! (i.e. `current->kunit_test`). base-commit: 7eb172143d5508b4da468ed59ee857c6e5e01da6 -- 2.48.1 ^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH] rust: remove leftover mentions of the `alloc` crate 2025-03-03 17:10 ` [PATCH] rust: remove leftover mentions of the `alloc` crate Miguel Ojeda @ 2025-03-03 17:28 ` Danilo Krummrich 2025-03-03 18:32 ` Andreas Hindborg 2025-03-05 23:01 ` Miguel Ojeda 2 siblings, 0 replies; 4+ messages in thread From: Danilo Krummrich @ 2025-03-03 17:28 UTC (permalink / raw) To: Miguel Ojeda Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, rust-for-linux, linux-kernel, patches, stable On Mon, Mar 03, 2025 at 06:10:30PM +0100, Miguel Ojeda wrote: > In commit 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and > `GlobalAlloc`") we stopped using the upstream `alloc` crate. > > Thus remove a few leftover mentions treewide. > > Cc: stable@vger.kernel.org # Also to 6.12.y after the `alloc` backport lands > Fixes: 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Good catch, Reviewed-by: Danilo Krummrich <dakr@kernel.org> ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rust: remove leftover mentions of the `alloc` crate 2025-03-03 17:10 ` [PATCH] rust: remove leftover mentions of the `alloc` crate Miguel Ojeda 2025-03-03 17:28 ` Danilo Krummrich @ 2025-03-03 18:32 ` Andreas Hindborg 2025-03-05 23:01 ` Miguel Ojeda 2 siblings, 0 replies; 4+ messages in thread From: Andreas Hindborg @ 2025-03-03 18:32 UTC (permalink / raw) To: Miguel Ojeda Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel, patches, stable "Miguel Ojeda" <ojeda@kernel.org> writes: > In commit 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and > `GlobalAlloc`") we stopped using the upstream `alloc` crate. > > Thus remove a few leftover mentions treewide. > > Cc: stable@vger.kernel.org # Also to 6.12.y after the `alloc` backport lands > Fixes: 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Reviewed-by: Andreas Hindborg <a.hindborg@kernel.org> Best regards, Andreas Hindborg ^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH] rust: remove leftover mentions of the `alloc` crate 2025-03-03 17:10 ` [PATCH] rust: remove leftover mentions of the `alloc` crate Miguel Ojeda 2025-03-03 17:28 ` Danilo Krummrich 2025-03-03 18:32 ` Andreas Hindborg @ 2025-03-05 23:01 ` Miguel Ojeda 2 siblings, 0 replies; 4+ messages in thread From: Miguel Ojeda @ 2025-03-05 23:01 UTC (permalink / raw) To: Miguel Ojeda Cc: Alex Gaynor, Boqun Feng, Gary Guo, Björn Roy Baron, Benno Lossin, Andreas Hindborg, Alice Ryhl, Trevor Gross, Danilo Krummrich, rust-for-linux, linux-kernel, patches, stable On Mon, Mar 3, 2025 at 6:10 PM Miguel Ojeda <ojeda@kernel.org> wrote: > > In commit 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and > `GlobalAlloc`") we stopped using the upstream `alloc` crate. > > Thus remove a few leftover mentions treewide. > > Cc: stable@vger.kernel.org # Also to 6.12.y after the `alloc` backport lands > Fixes: 392e34b6bc22 ("kbuild: rust: remove the `alloc` crate and `GlobalAlloc`") > Signed-off-by: Miguel Ojeda <ojeda@kernel.org> Applied to `rust-fixes` -- thanks everyone! Cheers, Miguel ^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2025-03-05 23:02 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <38Ry6xPAarfPYWB_FZBM_3Jy2Eo-skh5yWoGi-yT33tflksARlQmwDudaXGjQIgMiUgeSK8IPTV16DN5xdiGoQ==@protonmail.internalid>
2025-03-03 17:10 ` [PATCH] rust: remove leftover mentions of the `alloc` crate Miguel Ojeda
2025-03-03 17:28 ` Danilo Krummrich
2025-03-03 18:32 ` Andreas Hindborg
2025-03-05 23:01 ` Miguel Ojeda
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox