From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B407C2DF6E9; Sun, 28 Jun 2026 17:10:16 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782666616; cv=none; b=pHlMIVg8sKJr/BX7rRxDYTGUXeMzjiFJuwvK1L+x2dGXlEGnNr4V8SQl9hgyxylpFtXmcURdYSzWYqI3ro0Q/btEBB1La6EAEc21jSprQvT7nuEEoMATQxxBC818PoOQz1vb/7cFB8fyF8mU87JYINMAZCy0MBnk6EKykhqdpdQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1782666616; c=relaxed/simple; bh=6nYMvga0ssJWKkQxp4aI+MtYqo4PX5MQ/2PIAN01I0Q=; h=From:Date:Subject:MIME-Version:Content-Type:Message-Id:References: In-Reply-To:To:Cc; b=bUWTZMnC7LKEPkQmJrlkJMZqn2e11oe+Qt2RtjapQga+i9J/inHEayBdeAMLcGoZ43Pnrg02W9j0oSYk3VIoHR+LtSpqBcNy3ZotZ4k2co/qqs/DDu6bjBR7uF96b32Grvqsl0GlvjIVejFBhzMiQjONXX/tCTvh7bjmQzeoCOk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=tmw4YGfK; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="tmw4YGfK" Received: by smtp.kernel.org (Postfix) with ESMTPS id 5E77BC2BCF4; Sun, 28 Jun 2026 17:10:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1782666616; bh=6nYMvga0ssJWKkQxp4aI+MtYqo4PX5MQ/2PIAN01I0Q=; h=From:Date:Subject:References:In-Reply-To:To:Cc:Reply-To:From; b=tmw4YGfK0gqhXA5rtgOEyieO/LDY0+H707OOdYE11C/ojkyYTyTL3nrDouMx4lPhS fLJENKEGIQUWaKPG7CVtrwhElikdaTkYJSd5RoEeUA23bWqitwfmfhf88GkWQa0TS5 Rf1jrNWh5SJqRPaNaUQpwE5FzIfKTo2K1FNCnvSmPqvpxlc5l6ydb1ElGxZMNbPr4s akAKPTkFu7wo6Q+sXvZn+rL8GdqEoRMt5+BiMteQ/w0VLd+3RXdoyGA+BgAucGlFDK hSS+n969ap6H4BnlzVHqitgf9NfbH5TtjLKOwBxzzUvPlah+lXSnciRKi7F0vfKq5Y a6JiAeMBHZT0w== Received: from aws-us-west-2-korg-lkml-1.web.codeaurora.org (localhost.localdomain [127.0.0.1]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4CA14C43638; Sun, 28 Jun 2026 17:10:16 +0000 (UTC) From: SeungJong Ha via B4 Relay Date: Sun, 28 Jun 2026 17:10:15 +0000 Subject: [PATCH RFC 2/4] rust: prelude: re-export `zerocopy::Immutable` Precedence: bulk X-Mailing-List: rust-for-linux@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <20260628-dma-zerocopy-bridge-v1-2-9a2895ebe30d@gmail.com> References: <20260628-dma-zerocopy-bridge-v1-0-9a2895ebe30d@gmail.com> In-Reply-To: <20260628-dma-zerocopy-bridge-v1-0-9a2895ebe30d@gmail.com> To: Miguel Ojeda , Boqun Feng , Gary Guo , =?utf-8?q?Bj=C3=B6rn_Roy_Baron?= , Benno Lossin , Andreas Hindborg , Alice Ryhl , Trevor Gross , Danilo Krummrich , Daniel Almeida , Tamir Duberstein , Alexandre Courbot , =?utf-8?q?Onur_=C3=96zkan?= , David Airlie , Simona Vetter Cc: rust-for-linux@vger.kernel.org, linux-kernel@vger.kernel.org, nova-gpu@lists.linux.dev, dri-devel@lists.freedesktop.org, SeungJong Ha X-Mailer: b4 0.15.2 X-Developer-Signature: v=1; a=ed25519-sha256; t=1782666615; l=753; i=engineer.jjhama@gmail.com; s=20260103; h=from:subject:message-id; bh=0Joli7btSCpMuF0CGmnSjjLbowNlizxBxdLc5J1Eq4M=; b=f2bwTmIStE9+jdLSuE6+34IUR9IVAiS5LuzvRuZ9oslpEwm8G7tsJ9qs1YBkr1SYlJqDirm90 +PqvX+Dh3/CBx0rJrm0SCj7Sa/l0b9LoCNuwdntS95Box1o9sZz6ntZ X-Developer-Key: i=engineer.jjhama@gmail.com; a=ed25519; pk=G5nmjm+RTiWBpyCvc5xjR1b3li/2zipLSMyz+T4fj5E= X-Endpoint-Received: by B4 Relay for engineer.jjhama@gmail.com/20260103 with auth_id=590 X-Original-From: SeungJong Ha Reply-To: engineer.jjhama@gmail.com From: SeungJong Ha `impl_transmute_via_zerocopy!` requires `Immutable` (no interior mutability) alongside `FromBytes`/`IntoBytes`. Re-export it from the prelude like the other two. Assisted-by: Claude-Code:claude-opus-4-8 Signed-off-by: SeungJong Ha --- rust/kernel/prelude.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/rust/kernel/prelude.rs b/rust/kernel/prelude.rs index ca396f1f78a6..3db51c972bde 100644 --- a/rust/kernel/prelude.rs +++ b/rust/kernel/prelude.rs @@ -63,12 +63,14 @@ #[doc(no_inline)] pub use zerocopy::{ FromBytes, + Immutable, IntoBytes, // }; #[doc(no_inline)] pub use zerocopy_derive::{ FromBytes, + Immutable, IntoBytes, // }; -- 2.54.0