Re: [PATCH] mm/kconfig: Drop redundant dependency wrappers
From: David Hildenbrand (Arm)
Date: Tue Jul 14 2026 - 09:37:11 EST
On 7/12/26 11:33, Kaitao Cheng wrote:
> From: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
>
> Some mm Kconfig entries repeat dependencies that are already expressed by
> their surrounding blocks or menus.
>
> The zsmalloc allocator options menu already depends on ZSMALLOC, so the
> outer if ZSMALLOC block does not add any extra constraint. MEMORY_HOTREMOVE
> and MHP_MEMMAP_ON_MEMORY are both inside the if MEMORY_HOTPLUG block, so
> their local depends on MEMORY_HOTPLUG entries are redundant.
>
> PTE_MARKER_UFFD_WP is the only entry under if USERFAULTFD. Move the
> USERFAULTFD dependency into the symbol itself and combine it with the
> architecture support dependency.
>
> This keeps the same visibility and defaults while avoiding duplicate
> dependency expressions.
>
> Suggested-by: Julian Braha <julianbraha@xxxxxxxxx>
> Signed-off-by: Kaitao Cheng <chengkaitao@xxxxxxxxxx>
> ---
Acked-by: David Hildenbrand (Arm) <david@xxxxxxxxxx>
--
Cheers,
David