Skip to contentSkip to conversation

mm-swapops-remove-unused-is_hwpoison_entry.patch removed from -mm tree

merged mm-stable Andrew Morton 1 participant 1 message Oct 13

lore
Share & tools
lore

Andrew Morton

author tree notice Applied
#0 lore raw

The quilt patch titled
Subject: mm/swapops: remove unused is_hwpoison_entry()
has been removed from the -mm tree. Its filename was
mm-swapops-remove-unused-is_hwpoison_entry.patch

This patch was dropped because it was merged into the mm-stable branch of git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm

------------------------------------------------------
From: Sang-Heon Jeon <[email protected]>
Subject: mm/swapops: remove unused is_hwpoison_entry()
Date: Sat, 19 Sep 2026 01:56:40 +0900

Since commit 93976a20345b ("mm: eliminate further swapops predicates"), is_hwpoison_entry() has no callers.

So remove it.

No functional change.

---

 include/linux/swapops.h |    9 ---------
 1 file changed, 9 deletions(-)
include/linux/swapops.h renamed from include/linux/swapops.h~mm-swapops-remove-unused-is_hwpoison_entry +0 -9
@@ -261,11 +261,6 @@ static inline swp_entry_t make_hwpoison_
 	return swp_entry(SWP_HWPOISON, page_to_pfn(page));
 }
 
-static inline int is_hwpoison_entry(swp_entry_t entry)
-{
-	return swp_type(entry) == SWP_HWPOISON;
-}
-
 #else
 
 static inline swp_entry_t make_hwpoison_entry(struct page *page)
@@ -273,10 +268,6 @@ static inline swp_entry_t make_hwpoison_
 	return swp_entry(0, 0);
 }
 
-static inline int is_hwpoison_entry(swp_entry_t swp)
-{
-	return 0;
-}
 #endif
 
 typedef unsigned long pte_marker;

_

Patches currently in -mm which might be from [email protected] are