blob: 78076ee992e2eb09a8374dc6e416b4cd29eb4fb8 [file] [log] [blame]
From: Andrew Morton <akpm@linux-foundation.org>
Subject: mm-add-new-api-to-enable-ksm-per-process-fix
Date: Thu Apr 6 04:22:50 PM PDT 2023
fix build by removing errant ksm_add_mm() stub
Cc: Bagas Sanjaya <bagasdotme@gmail.com>
Cc: David Hildenbrand <david@redhat.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Rik van Riel <riel@surriel.com>
Cc: Stefan Roesch <shr@devkernel.io>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/linux/ksm.h | 4 ----
1 file changed, 4 deletions(-)
--- a/include/linux/ksm.h~mm-add-new-api-to-enable-ksm-per-process-fix
+++ a/include/linux/ksm.h
@@ -62,10 +62,6 @@ void folio_migrate_ksm(struct folio *new
#else /* !CONFIG_KSM */
-static inline int ksm_add_mm(struct mm_struct *mm)
-{
-}
-
static inline void ksm_add_vma(struct vm_area_struct *vma)
{
}
_