summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorSang-Heon Jeon <ekffu200098@gmail.com>2026-09-19 01:56:40 +0900
committerAndrew Morton <akpm@linux-foundation.org>2026-10-12 21:26:29 -0700
commite4ea16e00288f9f925104ea11dba3a364dd2d1c4 (patch)
treea94df33036c970d35c73c028d9cce116bd83ba64 /include/linux
parentca5480fb53fa73cb5816b696b103826daedab1ca (diff)
downloadlinux-e4ea16e00288f9f925104ea11dba3a364dd2d1c4.tar.gz
linux-e4ea16e00288f9f925104ea11dba3a364dd2d1c4.zip
mm/swapops: remove unused is_hwpoison_entry()
Since commit 93976a20345b ("mm: eliminate further swapops predicates"), is_hwpoison_entry() has no callers. So remove it. No functional change. Link: https://lore.kernel.org/20260918165642.1014988-1-ekffu200098@gmail.com Signed-off-by: Sang-Heon Jeon <ekffu200098@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Reviewed-by: SJ Park <sj@kernel.org> Reviewed-by: Zenghui Yu (Huawei) <zenghui.yu@linux.dev> Reviewed-by: Barry Song <baohua@kernel.org> Acked-by: Chris Li <chrisl@kernel.org> Cc: Baoquan He <baoquan.he@linux.dev> Cc: Kairui Song <kasong@tencent.com> Cc: Kemeng Shi <shikemeng@huaweicloud.com> Cc: Nhat Pham <nphamcs@gmail.com> Cc: Youngjun Park <youngjun.park@lge.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/swapops.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/include/linux/swapops.h b/include/linux/swapops.h
index e7d0d529f3e0..603f9e3f909c 100644
--- a/include/linux/swapops.h
+++ b/include/linux/swapops.h
@@ -261,11 +261,6 @@ static inline swp_entry_t make_hwpoison_entry(struct page *page)
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_entry(struct page *page)
return swp_entry(0, 0);
}
-static inline int is_hwpoison_entry(swp_entry_t swp)
-{
- return 0;
-}
#endif
typedef unsigned long pte_marker;