From patchwork Fri Apr 7 04:24:54 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Stefan Roesch X-Patchwork-Id: 13204445 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 33F25C6FD1D for ; Fri, 7 Apr 2023 04:25:22 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 7F57B6B0072; Fri, 7 Apr 2023 00:25:21 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id 77C276B0074; Fri, 7 Apr 2023 00:25:21 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 646156B0075; Fri, 7 Apr 2023 00:25:21 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from relay.hostedemail.com (smtprelay0013.hostedemail.com [216.40.44.13]) by kanga.kvack.org (Postfix) with ESMTP id 566F26B0072 for ; Fri, 7 Apr 2023 00:25:21 -0400 (EDT) Received: from smtpin16.hostedemail.com (a10.router.float.18 [10.200.18.1]) by unirelay07.hostedemail.com (Postfix) with ESMTP id 19B27160208 for ; Fri, 7 Apr 2023 04:25:21 +0000 (UTC) X-FDA: 80653305642.16.2C0E36C Received: from 66-220-144-178.mail-mxout.facebook.com (66-220-144-178.mail-mxout.facebook.com [66.220.144.178]) by imf11.hostedemail.com (Postfix) with ESMTP id 964F940016 for ; Fri, 7 Apr 2023 04:25:19 +0000 (UTC) Authentication-Results: imf11.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf11.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=hostedemail.com; s=arc-20220608; t=1680841519; h=from:from:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-transfer-encoding:content-transfer-encoding: in-reply-to:references; bh=+xVGoUi+Fq0bcjoE1mniAw/2PbqFz1OsgykAOpwCa64=; b=MGu0wzT3MxRkcXrUdkhxDIEb+i5+P6JICkegbQwWfQm5Gdkd2xts2gXcZ5iiUMjfgU9PeK sZGfhSrHN9jGwkfaRwSfMf7G3N3viRWjPYTdCxD0Gq41aPKgRMuRTdP2CmfUH+MFoXwHhl m76grQy6QoqgPqtZ6eaCVYqlOLmE5Ks= ARC-Authentication-Results: i=1; imf11.hostedemail.com; dkim=none; dmarc=none; spf=neutral (imf11.hostedemail.com: 66.220.144.178 is neither permitted nor denied by domain of shr@devkernel.io) smtp.mailfrom=shr@devkernel.io ARC-Seal: i=1; s=arc-20220608; d=hostedemail.com; t=1680841519; a=rsa-sha256; cv=none; b=O1ifnFfhFeHlgZ3e1ZghZyH3s92U+QWKEMm8YiaHbZ3qiKFHEpmCMZxspIVkscHXMsoMG2 9UE0cDQcmB1kSulGEoPO6wB4d+d7Ize/zVoJwyOa+j1uOhlzYo7FntyHGfYT1VazKQSSaQ O289Ovp4ikapZ1UaDd13/nwLjseB7wI= Received: by dev0134.prn3.facebook.com (Postfix, from userid 425415) id A4F96AD02EE3; Thu, 6 Apr 2023 21:25:05 -0700 (PDT) From: Stefan Roesch 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 Message-Id: <20230407042454.1449599-1-shr@devkernel.io> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 X-Rspamd-Queue-Id: 964F940016 X-Rspamd-Server: rspam09 X-Rspam-User: X-Stat-Signature: 4y8xfiwjnpoezhna5pgbhqi8oy5jr8sd X-HE-Tag: 1680841519-541518 X-HE-Meta: U2FsdGVkX19hfrapsoSzfx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ilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: 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 --- 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;