Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp2251682ybt; Tue, 16 Jun 2020 00:42:41 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwEqDbpjrQ8bTjdzqAukDV/1aC37xrpC96+dMQCH7k0K7d+n3Q6RN0ZnTMk7rRulB4dcKTg X-Received: by 2002:a17:906:c452:: with SMTP id ck18mr1674101ejb.116.1592293361056; Tue, 16 Jun 2020 00:42:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1592293361; cv=none; d=google.com; s=arc-20160816; b=bxMCpe/WY5iBf5gckNhZQcIiVU1uLj9VM5Mq7/6/on5KhNioqa9mV5Xgz4uiEeMPDI cEJWF3zBQMoshf4xpg2ZIP4aoiAdVbNGpiT7JT0wRNqYwqRxlSNoAlVJhUzCdRFQ0O5U hVXmDLeSE8amKtr28xL0Ux/mrYv1gbeS8bXdpeYqrw2QiCtM0ErW1uGdG89VmcimafVF pVEjgIBTz8qwdAye4iYFxKSE/deYDHRmx1+vM00whWIlBahxoJGZQUQDFN8T9i1T3PLq M00RCULQ70mDOlen1BEo2riJOgLxJRNlQ/FRE0RCJm38p0Ge+Iu/rAUUgPT4RoLcHfxm A75g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:ironport-sdr:dkim-signature; bh=lNFxVu5oHwO1aOURXAUvUJJi5lK2SkZMFrjh4Wym42s=; b=B086JsYHeLdQINDHmKgqji3VwFr+FF9D6DVdnoIxTgfYDnHru8nrvKJZHHfcPp9E99 aJI5NjR3+tej+LCjTKWKZnDrEuwCBLGP4iE/efye2vECK10IkeoQ3stYW55L30ZHsnp3 wy+oCzy8h2k0prIBlDrQVww8+ZJBHmz5/DY1nT++lyjyuM8bNgXs/ZRhkYvFdpcqYYE5 r4TG0XPO95ITNAZ/J2zUwSCoy3QIH+MHSkjUh6G+6HL3Vc8XD/0jPzLiDW9dDu4y47hP CaXNXED6kk9yd+nQgkvu9nS8ARA9E/VSCXtU516M+MzPrfm/pWCveGF5fyhHhyDTcbAd 3Erg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=unUPdX3t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt7si10505515ejb.395.2020.06.16.00.42.18; Tue, 16 Jun 2020 00:42:41 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=unUPdX3t; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=amazon.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727805AbgFPHkL (ORCPT + 99 others); Tue, 16 Jun 2020 03:40:11 -0400 Received: from smtp-fw-33001.amazon.com ([207.171.190.10]:14448 "EHLO smtp-fw-33001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725911AbgFPHkK (ORCPT ); Tue, 16 Jun 2020 03:40:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1592293211; x=1623829211; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=lNFxVu5oHwO1aOURXAUvUJJi5lK2SkZMFrjh4Wym42s=; b=unUPdX3tiFdK36WtTu5EtzmnPD/+VuC2yyk5kuxZwpotLnVaOrJrhUR6 9LAdZ0qBYuTL6f5LLB8EUm2coaGaNI8KV4WYKaF7LbgYXFcmyHTPVTBX3 JS/L1nuE8FPf3zoSmuli1sxBELbIH3tpoOSwWwvgwhmpNaSH31mKtRnTX w=; IronPort-SDR: pzYbNPctHnGw6iR+GwbRLdOrXezsKGARNWo+A6ajx28wgZTWrfQjSUGnXCO9bH0isGNYCiyiMZ MXRMl+XQ36IQ== X-IronPort-AV: E=Sophos;i="5.73,518,1583193600"; d="scan'208";a="51259311" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-33001.sea14.amazon.com with ESMTP; 16 Jun 2020 07:40:08 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan3.pdx.amazon.com [10.170.41.166]) by email-inbound-relay-2b-5bdc5131.us-west-2.amazon.com (Postfix) with ESMTPS id EC442A22FB; Tue, 16 Jun 2020 07:39:54 +0000 (UTC) Received: from EX13D31EUA001.ant.amazon.com (10.43.165.15) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 07:39:54 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.248) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 16 Jun 2020 07:39:18 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v12 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 16 Jun 2020 09:38:21 +0200 Message-ID: <20200616073828.16509-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200616073828.16509-1-sjpark@amazon.com> References: <20200616073828.16509-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.248] X-ClientProxiedBy: EX13D22UWC004.ant.amazon.com (10.43.162.198) To EX13D31EUA001.ant.amazon.com (10.43.165.15) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: SeongJae Park This commit exports 'do_madvise()' to external GPL modules, so that other modules including DAMON could use the function. Signed-off-by: SeongJae Park --- mm/madvise.c | 1 + 1 file changed, 1 insertion(+) diff --git a/mm/madvise.c b/mm/madvise.c index 1ad7522567d4..fcd951694ebc 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1171,6 +1171,7 @@ int do_madvise(struct task_struct *target_task, struct mm_struct *mm, return error; } +EXPORT_SYMBOL_GPL(do_madvise); SYSCALL_DEFINE3(madvise, unsigned long, start, size_t, len_in, int, behavior) { -- 2.17.1