mm: Fix: remove ksm_add_mm and ksm_add_vmas
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.
Signed-off-by Stefan Roesch <[email protected]>
--- include/linux/ksm.h | 8 -------- 1 file changed, 8 deletions(-)
include/linux/ksm.h +0 -8
@@ -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