Re: [PATCH v7 3/6] tools/lib/mm: move hugepage_settings out of selftests

From: David Hildenbrand (Arm)

Date: Mon Aug 24 2026 - 08:39:06 EST


On 8/13/26 20:12, Sarthak Sharma wrote:
> Move hugepage_settings.[ch] from tools/testing/selftests/mm/ to
> tools/lib/mm/ so the THP and HugeTLB helpers can be shared more easily
> between selftests and other tools.
>
> Keep the helpers exposed to mm selftests through vm_util.h where possible,
> and use direct <mm/hugepage_settings.h> includes for files that do not
> include vm_util.h. Adjust the selftests/mm build to compile the moved
> implementation from its new location.
>
> Remove the remaining kselftest dependency by including file_utils.h
> directly and using EXIT_FAILURE in the signal handler.
>
> Signed-off-by: Sarthak Sharma <sarthak.sharma@xxxxxxx>

Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>

--
Cheers,

David