lkml.org 
[lkml]   [2021]   [Aug]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 3/4] shmem: remove unneeded function forward declaration
Date
The forward declaration for shmem_should_replace_page() and
shmem_replace_page() is unnecessary. Remove them.

Signed-off-by: Miaohe Lin <linmiaohe@huawei.com>
---
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
\
 
 \ /
  Last update: 2021-08-12 14:04    [W:0.037 / U:0.516 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site