Re: [PATCH v2 1/3] mm/memory: move pte_install_uffd_wp_if_needed() into memory.c

From: David Hildenbrand (Arm)

Date: Mon Jul 20 2026 - 04:20:27 EST


On 7/20/26 07:55, Dev Jain wrote:
> pte_install_uffd_wp_if_needed() has grown too large for mm_inline.h.
> Move it to memory.c.
>
> This helper is only used inside mm/, so declare it in mm/internal.h
> instead of a public header.
>
> While at it, convert the comment to kerneldoc and rename the local
> arguments from pte/pteval to ptep/pte so the pointer and PTE value are
> easier to distinguish.
>
> Signed-off-by: Dev Jain <dev.jain@xxxxxxx>

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

--
Cheers,

David