* [PATCH -next] mm/ksm: change break_ksm_pmd|pud_entry() to static
@ 2022-10-20 7:59 Yang Yingliang
2022-10-20 8:31 ` David Hildenbrand
0 siblings, 1 reply; 2+ messages in thread
From: Yang Yingliang @ 2022-10-20 7:59 UTC (permalink / raw)
To: linux-mm; +Cc: akpm, david, yangyingliang
break_ksm_pmd|pud_entry() is only used in ksm.c now, change them
to static.
Fixes: 16ee05ec4698 ("mm/ksm: convert break_ksm() to use walk_page_range_vma()")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
---
mm/ksm.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/mm/ksm.c b/mm/ksm.c
index 570a23a0e5d9..c35054311e18 100644
--- a/mm/ksm.c
+++ b/mm/ksm.c
@@ -420,7 +420,7 @@ static inline bool ksm_test_exit(struct mm_struct *mm)
return atomic_read(&mm->mm_users) == 0;
}
-int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next,
+static int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next,
struct mm_walk *walk)
{
/* We only care about page tables to walk to a single base page. */
@@ -429,7 +429,7 @@ int break_ksm_pud_entry(pud_t *pud, unsigned long addr, unsigned long next,
return 0;
}
-int break_ksm_pmd_entry(pmd_t *pmd, unsigned long addr, unsigned long next,
+static int break_ksm_pmd_entry(pmd_t *pmd, unsigned long addr, unsigned long next,
struct mm_walk *walk)
{
bool *ksm_page = walk->private;
--
2.25.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH -next] mm/ksm: change break_ksm_pmd|pud_entry() to static
2022-10-20 7:59 [PATCH -next] mm/ksm: change break_ksm_pmd|pud_entry() to static Yang Yingliang
@ 2022-10-20 8:31 ` David Hildenbrand
0 siblings, 0 replies; 2+ messages in thread
From: David Hildenbrand @ 2022-10-20 8:31 UTC (permalink / raw)
To: Yang Yingliang, linux-mm; +Cc: akpm
On 20.10.22 09:59, Yang Yingliang wrote:
> break_ksm_pmd|pud_entry() is only used in ksm.c now, change them
> to static.
>
> Fixes: 16ee05ec4698 ("mm/ksm: convert break_ksm() to use walk_page_range_vma()")
> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
> ---
Thanks! I'm working on a new version as we speak that e.g., gets rid of
break_ksm_pud_entry() completely.
--
Thanks,
David / dhildenb
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-10-20 8:31 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-10-20 7:59 [PATCH -next] mm/ksm: change break_ksm_pmd|pud_entry() to static Yang Yingliang
2022-10-20 8:31 ` David Hildenbrand
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.