Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

rust: io: define ResourceSize as resource_size_t

These typedefs are always equivalent so this should not change anything,
but the code makes a lot more sense like this.

Cc: stable@vger.kernel.org
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Fixes: 493fc33ec252 ("rust: io: add resource abstraction")
Link: https://patch.msgid.link/20251112-resource-phys-typedefs-v2-1-538307384f82@google.com
Signed-off-by: Danilo Krummrich <dakr@kernel.org>

authored by

Alice Ryhl and committed by
Danilo Krummrich
919b7292 ededb7bc

+1 -1
+1 -1
rust/kernel/io/resource.rs
··· 20 20 /// 21 21 /// This is a type alias to either `u32` or `u64` depending on the config option 22 22 /// `CONFIG_PHYS_ADDR_T_64BIT`, and it can be a u64 even on 32-bit architectures. 23 - pub type ResourceSize = bindings::phys_addr_t; 23 + pub type ResourceSize = bindings::resource_size_t; 24 24 25 25 /// A region allocated from a parent [`Resource`]. 26 26 ///