Re: [PATCH 1/4] rust: add projection infrastructure
From: Danilo Krummrich
Date: Sat Feb 14 2026 - 05:28:06 EST
On Sat Feb 14, 2026 at 6:33 AM CET, Gary Guo wrote:
> diff --git a/rust/kernel/projection.rs b/rust/kernel/projection.rs
> new file mode 100644
> index 000000000000..200d116c39e2
> --- /dev/null
> +++ b/rust/kernel/projection.rs
> @@ -0,0 +1,269 @@
> +// SPDX-License-Identifier: GPL-2.0
> +
> +//! Infrastructure for handling projections.
> +
> +use core::{
> + mem::MaybeUninit,
> + ops::Deref, //
> +};
> +
> +use crate::{
> + build_error,
> + error::{
> + code::ERANGE,
> + Error, //
NIT: Why not use prelude instead?
> + }, //
> +};