* [PATCH v1] mm: Fix: remove ksm_add_mm and ksm_add_vmas
@ 2023-04-07 4:24 Stefan Roesch
0 siblings, 0 replies; only message in thread
From: Stefan Roesch @ 2023-04-07 4:24 UTC (permalink / raw)
To: kernel-team; +Cc: shr, linux-mm, akpm
The function ksm_add_mm() and ksm_add_vmas() don't need to be defined
when CONFIG_KSM is not defined.
Signed-off-by: Stefan Roesch <shr@devkernel.io>
---
include/linux/ksm.h | 8 --------
1 file changed, 8 deletions(-)
diff --git a/include/linux/ksm.h b/include/linux/ksm.h
index 4c32f9bca723..a93500aac371 100644
--- a/include/linux/ksm.h
+++ b/include/linux/ksm.h
@@ -67,18 +67,10 @@ const char *ksm_merge_type(struct mm_struct *mm);
#else /* !CONFIG_KSM */
-static inline int ksm_add_mm(struct mm_struct *mm)
-{
-}
-
static inline void ksm_add_vma(struct vm_area_struct *vma)
{
}
-static inline void ksm_add_vmas(struct mm_struct *mm)
-{
-}
-
static inline int ksm_fork(struct mm_struct *mm, struct mm_struct *oldmm)
{
return 0;
--
2.34.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-04-07 4:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-04-07 4:24 [PATCH v1] mm: Fix: remove ksm_add_mm and ksm_add_vmas Stefan Roesch
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox