summaryrefslogtreecommitdiff
path: root/rust/kernel
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2026-06-24 15:11:08 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2026-06-24 15:11:08 -0700
commitab9de95c9cf952332ab79453b4b5d1bfca8e514f (patch)
treee4ff705baee0738477b7d5cc440ad37ae1b4f2bb /rust/kernel
parentdcebfd2c1404d1c931e86ec5168cdc006d503909 (diff)
parent43a393185e33e573a374c1d4f7ddf6481484ef8d (diff)
downloadlwn-ab9de95c9cf952332ab79453b4b5d1bfca8e514f.tar.gz
lwn-ab9de95c9cf952332ab79453b4b5d1bfca8e514f.zip
Merge tag 'rust-7.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux
Pull rust addendum from Miguel Ojeda: "A second, tiny pull request later in the merge window with a small patch to simplify cross-tree development: 'kernel' crate: - 'prelude' module: add 'zerocopy{,_derive}::IntoBytes'. This will simplify using 'zerocopy' in several trees next cycle" * tag 'rust-7.2-2' of git://git.kernel.org/pub/scm/linux/kernel/git/ojeda/linux: rust: prelude: add `zerocopy{,_derive}::IntoBytes`
Diffstat (limited to 'rust/kernel')
-rw-r--r--rust/kernel/prelude.rs10
1 files changed, 8 insertions, 2 deletions
diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs
index 8a6da92e8da6..ca396f1f78a6 100644
--- a/rust/kernel/prelude.rs
+++ b/rust/kernel/prelude.rs
@@ -61,10 +61,16 @@ pub use pin_init::{
};
#[doc(no_inline)]
-pub use zerocopy::FromBytes;
+pub use zerocopy::{
+ FromBytes,
+ IntoBytes, //
+};
#[doc(no_inline)]
-pub use zerocopy_derive::FromBytes;
+pub use zerocopy_derive::{
+ FromBytes,
+ IntoBytes, //
+};
#[doc(no_inline)]
pub use super::{