All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Roesch <shr@devkernel.io>
To: kernel-team@fb.com
Cc: shr@devkernel.io, linux-mm@kvack.org, akpm@linux-foundation.org
Subject: [PATCH v1] mm: Fix: remove ksm_add_mm and ksm_add_vmas
Date: Thu,  6 Apr 2023 21:24:54 -0700	[thread overview]
Message-ID: <20230407042454.1449599-1-shr@devkernel.io> (raw)

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@devkernel.io>
---
 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



                 reply	other threads:[~2023-04-07  4:25 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230407042454.1449599-1-shr@devkernel.io \
    --to=shr@devkernel.io \
    --cc=akpm@linux-foundation.org \
    --cc=kernel-team@fb.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.