Re: [PATCH mm-new v2 2/5] mm/swapops: remove unused make_guard_swp_entry()
From: Dev Jain
Date: Wed Nov 18 2026 - 23:32:34 EST
On 17/11/26 12:46 pm, Shivank Garg wrote:
> make_guard_swp_entry() has no callers.
>
> Signed-off-by: Shivank Garg <shivankg@xxxxxxx>
> ---
With the commit message improved:
Reviewed-by: Dev Jain <dev.jain@xxxxxxx>
> include/linux/swapops.h | 5 -----
> 1 file changed, 5 deletions(-)
>
> diff --git a/include/linux/swapops.h b/include/linux/swapops.h
> index 603f9e3f909c..6f62fc3c8cfa 100644
> --- a/include/linux/swapops.h
> +++ b/include/linux/swapops.h
> @@ -306,11 +306,6 @@ static inline swp_entry_t make_poisoned_swp_entry(void)
> return make_pte_marker_entry(PTE_MARKER_POISONED);
> }
>
> -static inline swp_entry_t make_guard_swp_entry(void)
> -{
> - return make_pte_marker_entry(PTE_MARKER_GUARD);
> -}
> -
> struct page_vma_mapped_walk;
>
> #ifdef CONFIG_ARCH_HAS_PMD_SOFTLEAVES
>