projects
/
linux-2.6-microblaze.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
405966e
)
rust: alloc: add `Vec` to prelude
author
Danilo Krummrich
<dakr@kernel.org>
Fri, 4 Oct 2024 15:41:25 +0000
(17:41 +0200)
committer
Miguel Ojeda
<ojeda@kernel.org>
Tue, 15 Oct 2024 21:10:32 +0000
(23:10 +0200)
Now that we removed `VecExt` and the corresponding includes in
prelude.rs, add the new kernel `Vec` type instead.
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Link:
https://lore.kernel.org/r/20241004154149.93856-22-dakr@kernel.org
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/prelude.rs
patch
|
blob
|
history
diff --git
a/rust/kernel/prelude.rs
b/rust/kernel/prelude.rs
index
07daccf
..
8bdab9a
100644
(file)
--- a/
rust/kernel/prelude.rs
+++ b/
rust/kernel/prelude.rs
@@
-14,7
+14,7
@@
#[doc(no_inline)]
pub use core::pin::Pin;
-pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec};
+pub use crate::alloc::{flags::*, Box, KBox, KVBox, KVVec, KVec, VBox, VVec
, Vec
};
#[doc(no_inline)]
pub use macros::{module, pin_data, pinned_drop, vtable, Zeroable};