x86/mm: use resource_size_t parameter in phys_mem_access_encrypted()
PATCH 1/1 x86/mm: use resource_size_t parameter in phys_mem_access_encrypted()
As phys_mem_access_encrypted() func calls arch_memremap_can_ram_remap() which use resource_size_t parameter, so there just to be consistent in case to avoid ambiguity.
Signed-off-by Xin Hao <[email protected]>
--- arch/x86/include/asm/io.h | 4 ++-- arch/x86/mm/ioremap.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/include/asm/io.h +2 -2
@@ -354,10 +354,10 @@ extern bool arch_memremap_can_ram_remap(resource_size_t offset, unsigned long flags);#define arch_memremap_can_ram_remap arch_memremap_can_ram_remap -extern bool phys_mem_access_encrypted (unsigned long phys_addr, +extern bool phys_mem_access_encrypted (resource_size_t phys_addr,unsigned long size);#else -static inline bool phys_mem_access_encrypted (unsigned long phys_addr, +static inline bool phys_mem_access_encrypted (resource_size_t phys_addr,unsigned long size) {return true;
arch/x86/mm/ioremap.c +1 -1
@@ -792,7 +792,7 @@ pgprot_t __init early_memremap_pgprot_adjust(resource_size_t phys_addr, : pgprot_decrypted(prot); } -bool phys_mem_access_encrypted (unsigned long phys_addr,unsigned long size) +bool phys_mem_access_encrypted (resource_size_t phys_addr,unsigned long size) {return arch_memremap_can_ram_remap (phys_addr, size,0 ); }
Signature · 1 line
2.31.0