Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4211884ybb; Tue, 7 Apr 2020 03:03:18 -0700 (PDT) X-Google-Smtp-Source: APiQypIThuQwflpDU5Ud84qqKHLjE5upQhwTpdlJaYEtT9PK7aCN5zSjgbpuKh2kd0o3ZoH/2NwS X-Received: by 2002:aca:5d8a:: with SMTP id r132mr1053301oib.129.1586253798518; Tue, 07 Apr 2020 03:03:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586253798; cv=none; d=google.com; s=arc-20160816; b=Ho60ixKSbtetjZftBQX+Zt2gwljSeDQEBSMIitCqvC3ry01gUpvmnsItfMOEcw9tpp TD+PdKEaCWNFhinK31gtxiNQMElfmJa4/IEE9G68pY+U5dlrQY/ZVeRujbHCVl8dHRQE 1xqth2BW3JLs8NKp83tX0/9LPuzjwT/Nz3W502XaBTiV6CSstFD5jTjbXtxL4Ho9IYuW BADsqWIKC1cpvGebYK69pRLhUWH7aYeAh1kATDtRQIlO+9s2dzsJyWhmU+5WuTg2cDVT O7gLkzUzbInFDj0HW+euVpJq/BD3hNz0iFI6N/QJ7Lf2iyvFtnxfYtrDLemTYaJrSIfs qnVw== 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=nGVyzPqW5m6s8t0mmi3Dj+fU/9R/tIyDbBz4uEGhdHiAgB+pEKqvITgFlEgVILIzLX F4YGOld7rjTBiEn5XH22ceHfz21gXPiVllrYTS9U+/EySpXStMkZUJpO2iqWcJLK6oJ+ nO9u41k53ZCk4iEz072l5ZDkE/OTNVTOAUGkfYV6xRtC1BjqmCjK85n3Ika2INreeaW1 Br+wrw0C5W8SZDi3+of/H4GRYERQLRbwLY/KxE8rMGH/xX0fQCscQDmCilk2FPXwE/sc 0gCGZ6P6GECVMzzGa+m9iY+MFnFWbQPHSx+V37BmNe/51KYQ0N/YFsCH6tjOPbB/tWTV v1zA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=rwGGfwzL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id z126si466015oia.187.2020.04.07.03.03.05; Tue, 07 Apr 2020 03:03:18 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=rwGGfwzL; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1728218AbgDGKBe (ORCPT + 99 others); Tue, 7 Apr 2020 06:01:34 -0400 Received: from smtp-fw-6001.amazon.com ([52.95.48.154]:3794 "EHLO smtp-fw-6001.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728189AbgDGKBe (ORCPT ); Tue, 7 Apr 2020 06:01:34 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1586253694; x=1617789694; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=LEhvbl4WlekKWmbg/2lD8LPKggXeYFxSwkdByXNxcTk=; b=rwGGfwzLZqNucRrIzPUl/kTH1mNRA2YztQD4dWmq79WkorlBhswbYt3D 2vHMKdPLnGHM1pkguxjCkUrRPCZc6v0cy2VfWHsPVntmVDJoHu+LIPwkf geCWEOklZRYrRqO+yVNBc5pEUTh/O3MiKLcZegX+QvGOWBtX8iAW1BXO6 Y=; IronPort-SDR: FS2sSDAGc/QhPftzcAtcMkwnaO8L70xDtSjbdKejFJRyWdo5veA3/Stth2Qy62M7pwDUqoCOLd DNAATJhSdXeg== X-IronPort-AV: E=Sophos;i="5.72,353,1580774400"; d="scan'208";a="25880856" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-a7fdc47a.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6001.iad6.amazon.com with ESMTP; 07 Apr 2020 10:01:18 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2b-a7fdc47a.us-west-2.amazon.com (Postfix) with ESMTPS id 3A90CC5CF7; Tue, 7 Apr 2020 10:01:16 +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, 7 Apr 2020 10:01:15 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.171) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Apr 2020 10:01:01 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v6 1/7] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 7 Apr 2020 12:00:00 +0200 Message-ID: <20200407100007.3894-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200407100007.3894-1-sjpark@amazon.com> References: <20200407100007.3894-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.171] X-ClientProxiedBy: EX13D34UWA002.ant.amazon.com (10.43.160.245) 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