Re: [PATCH] mm/memory_hotplug: use helper function zone_end_pfn() to get end_pfn

2021-01-27 Thread Miaohe Lin
Hi: On 2021/1/27 17:40, David Hildenbrand wrote: > On 27.01.21 10:32, Miaohe Lin wrote: >> Commit 108bcc96ef70 ("mm: add & use zone_end_pfn() and zone_spans_pfn()") >> introduced the helper zone_end_pfn() to calculate the zone end pfn.  But >> update_pgdat_span() forgot to use it. Use this helper a

Re: [PATCH] mm/memory_hotplug: use helper function zone_end_pfn() to get end_pfn

2021-01-27 Thread David Hildenbrand
On 27.01.21 10:32, Miaohe Lin wrote: Commit 108bcc96ef70 ("mm: add & use zone_end_pfn() and zone_spans_pfn()") introduced the helper zone_end_pfn() to calculate the zone end pfn. But update_pgdat_span() forgot to use it. Use this helper and re-name local variable zone_end_pfn to end_pfn to fix b

[PATCH] mm/memory_hotplug: use helper function zone_end_pfn() to get end_pfn

2021-01-27 Thread Miaohe Lin
Commit 108bcc96ef70 ("mm: add & use zone_end_pfn() and zone_spans_pfn()") introduced the helper zone_end_pfn() to calculate the zone end pfn. But update_pgdat_span() forgot to use it. Use this helper and re-name local variable zone_end_pfn to end_pfn to fix below compilation error: mm/memory_hotp