Merge tag 'dmaengine-6.2-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/vkoul...
[linux-2.6-block.git] / rust / kernel / prelude.rs
CommitLineData
247b365d
WAF
1// SPDX-License-Identifier: GPL-2.0
2
3//! The `kernel` prelude.
4//!
5//! These are the most common items used by Rust code in the kernel,
6//! intended to be imported by all Rust code, for convenience.
7//!
8//! # Examples
9//!
10//! ```
11//! use kernel::prelude::*;
12//! ```
13
247b365d 14pub use core::pin::Pin;
474be445
MO
15
16pub use alloc::{boxed::Box, vec::Vec};
17
b44becc5 18pub use macros::{module, vtable};
474be445 19
0f595bab
GG
20pub use super::build_assert;
21
bee16889 22pub use super::{dbg, pr_alert, pr_crit, pr_debug, pr_emerg, pr_err, pr_info, pr_notice, pr_warn};
474be445 23
ef9e3797
MO
24pub use super::static_assert;
25
25d176a4 26pub use super::error::{code::*, Error, Result};
474be445 27
d126d238 28pub use super::{str::CStr, ThisModule};