]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
rust: device_id: replace incorrect word in safety documentation
authorYilin Chen <1479826151@qq.com>
Sun, 28 Dec 2025 16:53:44 +0000 (00:53 +0800)
committerDanilo Krummrich <dakr@kernel.org>
Mon, 29 Dec 2025 13:09:18 +0000 (14:09 +0100)
commit3691fd19ccad4c1c0e3fc4888ef36edaa6e571be
tree5513db05bfd966ec72e13b33cf59fe1e8ecfb1a4
parent68ece1e2ce3a1cb0aac9f5af685cf18fa2fa31aa
rust: device_id: replace incorrect word in safety documentation

The safety documentation incorrectly refers to `RawDeviceId` when
transmuting to `RawType`. This fixes the documentation to correctly
indicate that implementers must ensure layout compatibility with
`RawType`, not `RawDeviceId`.

Fixes: 9b90864bb42b ("rust: implement `IdArray`, `IdTable` and `RawDeviceId`")
Signed-off-by: Yilin Chen <1479826151@qq.com>
Link: https://patch.msgid.link/tencent_C18DD5047749311142ED455779C7CCCF3A08@qq.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/device_id.rs