[PATCH 3/4] shmem: remove unneeded function forward declaration
From: Miaohe Lin
Date: Thu Aug 12 2021 - 08:03:59 EST
The forward declaration for shmem_should_replace_page() and
shmem_replace_page() is unnecessary. Remove them.
Signed-off-by: Miaohe Lin <linmiaohe@xxxxxxxxxx>
---
mm/shmem.c | 3 ---
1 file changed, 3 deletions(-)
diff --git a/mm/shmem.c b/mm/shmem.c
index 41d2900153d9..ccef5fad0049 100644
--- a/mm/shmem.c
+++ b/mm/shmem.c
@@ -135,9 +135,6 @@ static unsigned long shmem_default_max_inodes(void)
}
#endif
-static bool shmem_should_replace_page(struct page *page, gfp_t gfp);
-static int shmem_replace_page(struct page **pagep, gfp_t gfp,
- struct shmem_inode_info *info, pgoff_t index);
static int shmem_swapin_page(struct inode *inode, pgoff_t index,
struct page **pagep, enum sgp_type sgp,
gfp_t gfp, struct vm_area_struct *vma,
--
2.23.0