]> git.ipfire.org Git - thirdparty/linux.git/commit
rust: io: add typedef for phys_addr_t
authorAlice Ryhl <aliceryhl@google.com>
Wed, 12 Nov 2025 09:48:35 +0000 (09:48 +0000)
committerDanilo Krummrich <dakr@kernel.org>
Thu, 13 Nov 2025 09:17:24 +0000 (20:17 +1100)
commitdd6ff5cf56fb183fce605ca6a5bfce228cd8888b
treedecc11adecfeeda5ce4c07fab60604d0d07327d5
parentee2776e54b2666f99ef5e3ad0b60889e1500dada
rust: io: add typedef for phys_addr_t

The C typedef phys_addr_t is missing an analogue in Rust, meaning that
we end up using bindings::phys_addr_t or ResourceSize as a replacement
in various places throughout the kernel. Fix that by introducing a new
typedef on the Rust side. Place it next to the existing ResourceSize
typedef since they're quite related to each other.

Cc: stable@vger.kernel.org # for v6.18 [1]
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://patch.msgid.link/20251112-resource-phys-typedefs-v2-4-538307384f82@google.com
Link: https://lore.kernel.org/all/20251112-resource-phys-typedefs-v2-0-538307384f82@google.com/
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
rust/kernel/devres.rs
rust/kernel/io.rs
rust/kernel/io/resource.rs