Skip to contentSkip to conversation

mm: Fix: remove ksm_add_mm and ksm_add_vmas

PATCH New Stefan Roesch 1 participant 1 message Apr 7, 2023

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 mm: Fix: remove ksm_add_mm and ksm_add_vmas

The function ksm_add_mm() and ksm_add_vmas() don't need to be defined when CONFIG_KSM is not defined.

---
 include/linux/ksm.h | 8 --------
 1 file changed, 8 deletions(-)
include/linux/ksm.h +0 -8
index 4c32f9bca723..a93500aac371 100644
@@ -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;
Signature · 1 line
2.34.1