Re: [PATCH 3/8] mm: use vmem_altmap code without CONFIG_ZONE_DEVICE

From: David Hildenbrand
Date: Thu Nov 16 2023 - 13:43:10 EST


On 14.11.23 19:02, Sumanth Korikkar wrote:
vmem_altmap_free() and vmem_altmap_offset() could be utlized without
CONFIG_ZONE_DEVICE enabled. Hence, move it to sparse-vmemmap.c

Maybe give an example: For example mm/memory_hotplug.c:__add_pages() relies on that.

The altmap is no longer restricted to ZONE_DEVICE handling.

Reviewed-by: David Hildenbrand <david@xxxxxxxxxx>

--
Cheers,

David / dhildenb