The patch titled Subject: mm: fix: remove ksm_add_mm and ksm_add_vmas has been added to the -mm mm-unstable branch. Its filename is mm-add-new-api-to-enable-ksm-per-process-fix-2.patch This patch will shortly appear at https://git.kernel.org/pub/scm/linux/kernel/git/akpm/25-new.git/tree/patches/mm-add-new-api-to-enable-ksm-per-process-fix-2.patch This patch will later appear in the mm-unstable branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next via the mm-everything branch at git://git.kernel.org/pub/scm/linux/kernel/git/akpm/mm and is updated there every 2-3 working days ------------------------------------------------------ From: Stefan Roesch <shr@xxxxxxxxxxxx> Subject: mm: fix: remove ksm_add_mm and ksm_add_vmas Date: Thu, 6 Apr 2023 21:24:54 -0700 The function ksm_add_mm() and ksm_add_vmas() don't need to be defined when CONFIG_KSM is not defined. Link: https://lkml.kernel.org/r/20230407042454.1449599-1-shr@xxxxxxxxxxxx Signed-off-by: Stefan Roesch <shr@xxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- include/linux/ksm.h | 8 -------- 1 file changed, 8 deletions(-) --- a/include/linux/ksm.h~mm-add-new-api-to-enable-ksm-per-process-fix-2 +++ a/include/linux/ksm.h @@ -62,18 +62,10 @@ 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) { } -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; _ Patches currently in -mm which might be from shr@xxxxxxxxxxxx are mm-add-new-api-to-enable-ksm-per-process.patch mm-add-new-api-to-enable-ksm-per-process-fix-2.patch mm-add-new-ksm-process-and-sysfs-knobs.patch selftests-mm-add-new-selftests-for-ksm.patch