Received: by 2002:a25:2c96:0:0:0:0:0 with SMTP id s144csp1695079ybs; Tue, 26 May 2020 01:03:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzM8Wg3pq4M3mP/O2iNitzd8YrbI3HtX7t6tynJKehJO4may2NTK4RsmztYcCBuLz3L2HUE X-Received: by 2002:a17:906:39c3:: with SMTP id i3mr53199eje.417.1590480205047; Tue, 26 May 2020 01:03:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1590480205; cv=none; d=google.com; s=arc-20160816; b=FZpcKzlea1t9c6lzRxshWB6NE587sCJwrT6WAPScbvH25cjhVESyvz6EHHCfTo1j7S LQzfFiqXOvN1pvBuyiFFWHfEvcuJiTSBF84nRIHcvStWIivc3PfFMYMC1UrVJak6qF4x zXdOH7bLCo4N75WSZZftrLFwVjyKlrI0n27zcksdf1dgl+gD2d3w9lBFNfqO+DzS4Swt bI/+ej63S7WrMoCA6H3rLSNh/Md3DRlUA15LYmXhumzRbJ1Y8cZOJpryN9fV5w3gSr7r 8cri5ytuO6i+t2tV0xexHnNeYwpcphcF2dLM8nW859/f0hFWLIJWuI2iQ7E7bDkeskZr i1yg== 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=LEhvbl4WlekKWmbg/2lD8LPKggXeYFxSwkdByXNxcTk=; b=1CRqtBglGHSNGocOf2kswgdSxpm5HwXn2kBhIbgHE2PwM6mP2B5bg2AClSSqRiFapf Rg+r+46ptBwNwkl9V0Pw/TBMFlIcLrURGZl2J9Vdwi2dmk45rxTiG5JZFxHZ6cu5iYlw Olxax3Xt7F6mKxPL6nS1EHzdYJCvyvRyiT5gCuq2Qez7B3fuW5n8xadkHyV1NCB27fQF ZRWSr4xcq+kob6L9lW1Eh0o9VLwHYMWpJh0raid+B2N7oNOFzLMTHz0E7Mxf50LNYLW+ dwWlix/zTUS8cvkawxyip8XV1VDuwkOoztO+8KhiiVwl5ZmFeXwjwZEc7DORsWx38Tax JQdQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=F2bbG169; 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 q6si11315924edj.601.2020.05.26.01.03.02; Tue, 26 May 2020 01:03:25 -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=F2bbG169; 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 S1729799AbgEZH7s (ORCPT + 99 others); Tue, 26 May 2020 03:59:48 -0400 Received: from smtp-fw-9102.amazon.com ([207.171.184.29]:3334 "EHLO smtp-fw-9102.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728364AbgEZH7s (ORCPT ); Tue, 26 May 2020 03:59:48 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1590479988; x=1622015988; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=LEhvbl4WlekKWmbg/2lD8LPKggXeYFxSwkdByXNxcTk=; b=F2bbG169JW7Utoqh9wgevuGSQw7JWceoZOVgUxJqmUZ6mQ8CqxxnBZiF PvLqa/QDcQizNW7XO5y5mzBJPXVqAvxtJD9IJTaVCIZOXAITPfFUm/P72 MKiYTr5KEhmCRTAd04J7lcccRAZQMftazZJSVgihb6z/NXCTKjuiCuHrQ o=; IronPort-SDR: LOpKn3M2VH6hNIBbwCFvhiT1EbytfGxI37xk+otEr8NbtXWyHib+fIK4LbLs5ZFzcjDQ5pXlVt T9hkA7hKCD4A== X-IronPort-AV: E=Sophos;i="5.73,436,1583193600"; d="scan'208";a="45914243" Received: from sea32-co-svc-lb4-vlan3.sea.corp.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.47.23.38]) by smtp-border-fw-out-9102.sea19.amazon.com with ESMTP; 26 May 2020 07:59:44 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com (Postfix) with ESMTPS id DEE65A1C0C; Tue, 26 May 2020 07:59:32 +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, 26 May 2020 07:59:28 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.161.193) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 26 May 2020 07:59:13 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v9 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 26 May 2020 09:56:55 +0200 Message-ID: <20200526075702.27339-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200526075702.27339-1-sjpark@amazon.com> References: <20200526075702.27339-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.193] X-ClientProxiedBy: EX13D08UWB004.ant.amazon.com (10.43.161.232) 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 80f8a1839f70..151aaf285cdd 100644 --- a/mm/madvise.c +++ b/mm/madvise.c @@ -1151,6 +1151,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