[PATCH 5/8] mm/swapops: remove unused make_guard_swp_entry()

From: Shivank Garg

Date: Mon Oct 26 2026 - 06:38:25 EST


make_guard_swp_entry() has no callers.

Signed-off-by: Shivank Garg <shivankg@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

--
2.53.0