* [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude
@ 2023-03-29 22:33 y86-dev
2023-03-30 11:07 ` Gary Guo
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: y86-dev @ 2023-03-29 22:33 UTC (permalink / raw)
To: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
Gary Guo, Björn Roy Baron, Alice Ryhl
Cc: rust-for-linux, linux-kernel, patches
From: Benno Lossin <y86-dev@protonmail.com>
Add `pin-init` API macros and traits to the prelude.
Signed-off-by: Benno Lossin <y86-dev@protonmail.com>
---
rust/kernel/prelude.rs | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs
index 0bc1c97e5604..fcdc511d2ce8 100644
--- a/rust/kernel/prelude.rs
+++ b/rust/kernel/prelude.rs
@@ -18,7 +18,7 @@ pub use core::pin::Pin;
pub use alloc::{boxed::Box, vec::Vec};
#[doc(no_inline)]
-pub use macros::{module, vtable};
+pub use macros::{module, pin_data, pinned_drop, vtable};
pub use super::build_assert;
@@ -27,8 +27,12 @@ pub use super::build_assert;
pub use super::dbg;
pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
+pub use super::{init, pin_init, try_init, try_pin_init};
+
pub use super::static_assert;
pub use super::error::{code::*, Error, Result};
pub use super::{str::CStr, ThisModule};
+
+pub use super::init::{InPlaceInit, Init, PinInit};
--
2.39.2
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude
2023-03-29 22:33 [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude y86-dev
@ 2023-03-30 11:07 ` Gary Guo
2023-03-31 6:58 ` Alice Ryhl
2023-03-31 12:50 ` Andreas Hindborg
2 siblings, 0 replies; 4+ messages in thread
From: Gary Guo @ 2023-03-30 11:07 UTC (permalink / raw)
To: y86-dev
Cc: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
Björn Roy Baron, Alice Ryhl, rust-for-linux, linux-kernel,
patches
On Wed, 29 Mar 2023 22:33:40 +0000
y86-dev@protonmail.com wrote:
> From: Benno Lossin <y86-dev@protonmail.com>
>
> Add `pin-init` API macros and traits to the prelude.
>
> Signed-off-by: Benno Lossin <y86-dev@protonmail.com>
Reviewed-by: Gary Guo <gary@garyguo.net>
> ---
> rust/kernel/prelude.rs | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs
> index 0bc1c97e5604..fcdc511d2ce8 100644
> --- a/rust/kernel/prelude.rs
> +++ b/rust/kernel/prelude.rs
> @@ -18,7 +18,7 @@ pub use core::pin::Pin;
> pub use alloc::{boxed::Box, vec::Vec};
>
> #[doc(no_inline)]
> -pub use macros::{module, vtable};
> +pub use macros::{module, pin_data, pinned_drop, vtable};
>
> pub use super::build_assert;
>
> @@ -27,8 +27,12 @@ pub use super::build_assert;
> pub use super::dbg;
> pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
>
> +pub use super::{init, pin_init, try_init, try_pin_init};
> +
> pub use super::static_assert;
>
> pub use super::error::{code::*, Error, Result};
>
> pub use super::{str::CStr, ThisModule};
> +
> +pub use super::init::{InPlaceInit, Init, PinInit};
> --
> 2.39.2
>
>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude
2023-03-29 22:33 [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude y86-dev
2023-03-30 11:07 ` Gary Guo
@ 2023-03-31 6:58 ` Alice Ryhl
2023-03-31 12:50 ` Andreas Hindborg
2 siblings, 0 replies; 4+ messages in thread
From: Alice Ryhl @ 2023-03-31 6:58 UTC (permalink / raw)
To: y86-dev
Cc: rust-for-linux, linux-kernel, patches, Alex Gaynor, Boqun Feng,
Björn Roy Baron, Miguel Ojeda, Wedson Almeida Filho,
Gary Guo
On 3/30/23 00:33, y86-dev@protonmail.com wrote:
> From: Benno Lossin <y86-dev@protonmail.com>
>
> Add `pin-init` API macros and traits to the prelude.
>
> Signed-off-by: Benno Lossin <y86-dev@protonmail.com>
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude
2023-03-29 22:33 [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude y86-dev
2023-03-30 11:07 ` Gary Guo
2023-03-31 6:58 ` Alice Ryhl
@ 2023-03-31 12:50 ` Andreas Hindborg
2 siblings, 0 replies; 4+ messages in thread
From: Andreas Hindborg @ 2023-03-31 12:50 UTC (permalink / raw)
To: y86-dev
Cc: Miguel Ojeda, Alex Gaynor, Wedson Almeida Filho, Boqun Feng,
Gary Guo, Björn Roy Baron, Alice Ryhl, rust-for-linux,
linux-kernel, patches, Andreas Hindborg
y86-dev@protonmail.com writes:
> From: Benno Lossin <y86-dev@protonmail.com>
>
> Add `pin-init` API macros and traits to the prelude.
>
> Signed-off-by: Benno Lossin <y86-dev@protonmail.com>
> ---
Reviewed-by: Andreas Hindborg <a.hindborg@samsung.com>
> rust/kernel/prelude.rs | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs
> index 0bc1c97e5604..fcdc511d2ce8 100644
> --- a/rust/kernel/prelude.rs
> +++ b/rust/kernel/prelude.rs
> @@ -18,7 +18,7 @@ pub use core::pin::Pin;
> pub use alloc::{boxed::Box, vec::Vec};
>
> #[doc(no_inline)]
> -pub use macros::{module, vtable};
> +pub use macros::{module, pin_data, pinned_drop, vtable};
>
> pub use super::build_assert;
>
> @@ -27,8 +27,12 @@ pub use super::build_assert;
> pub use super::dbg;
> pub use super::{pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
>
> +pub use super::{init, pin_init, try_init, try_pin_init};
> +
> pub use super::static_assert;
>
> pub use super::error::{code::*, Error, Result};
>
> pub use super::{str::CStr, ThisModule};
> +
> +pub use super::init::{InPlaceInit, Init, PinInit};
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2023-03-31 12:52 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 22:33 [PATCH v3 10/13] rust: prelude: add `pin-init` API items to prelude y86-dev
2023-03-30 11:07 ` Gary Guo
2023-03-31 6:58 ` Alice Ryhl
2023-03-31 12:50 ` Andreas Hindborg
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).