[PATCH v1] mm: Fix: remove ksm_add_mm and ksm_add_vmas

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxx>
---
 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





[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Bugtraq]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux