Re: [PATCH] arm[64]/memremap: fix arch_memremap_can_ram_remap()

Ross Stutterheim
2025-04-14T14:18:31Z

On 4/14/25 08:49, Catalin Marinas wrote:
> Please cc the maintainers and the original contributor of the commit you
> are fixing, otherwise the patch may not be noticed.
Thanks for adding them on your reply. I will add to V2.

>> diff --git a/arch/arm64/mm/ioremap.c b/arch/arm64/mm/ioremap.c
>> index 10e246f11271..48c38c986b95 100644
>> --- a/arch/arm64/mm/ioremap.c
>> +++ b/arch/arm64/mm/ioremap.c
>> @@ -51,7 +51,5 @@ void __init early_ioremap_init(void)
>> bool arch_memremap_can_ram_remap(resource_size_t offset, size_t size,
>> unsigned long flags)
>> {
>> - unsigned long pfn = PHYS_PFN(offset);
>> -
>> - return pfn_is_map_memory(pfn);
>> + return pfn_is_map_memory(offset);
>
> This is already correct.
Will remove on V2.

--
Ross