Received: by 2002:a25:1985:0:0:0:0:0 with SMTP id 127csp583146ybz; Wed, 29 Apr 2020 05:51:24 -0700 (PDT) X-Google-Smtp-Source: APiQypLsgFcXY8VFFksZNvHoqPzcPXsOAry1khEKgmkV/Grx1dWiClwVY8zMbFGQ2vQPgy8AO/vP X-Received: by 2002:a05:6402:698:: with SMTP id f24mr2211634edy.260.1588164684254; Wed, 29 Apr 2020 05:51:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1588164684; cv=none; d=google.com; s=arc-20160816; b=oKZQUjAkgkwW33mwq5/x58CdyJo+yqVVMt5Z9oTfwbgh5h/Sr5Yqvl8B1JGXk45pza XAijHqw5bvbYppyi4uwxPn9zYUiRR2A56EKAERMLzencIc1OKJxjcvIoZcNGu4kw6d+5 OuI+ULZEYvj9l0LxKXiQQILaClmZyznW45VmugY/ti/we4r7VZRNFdWJYsOVDxm+dx+y ftCa6ZF6pFy1bQn5PloLtoY3beWU6TmTheiwgwoEXM+cNGrgZZQo2mqvwkSk4CrShzzo lctIRuOmqcop49VPskPLfAmInnchClztw7Smbk2smuE72EP1TFxHNXbSvDqXEqRBzmjv Q1gw== 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=OvnwudP3bY1xhrmI7YY6DOXag0vRmIpcqqUPB7D6u0idjHWvra+9CkwU5W9DeHHJll UFMbW29HoP4RSgix4uoe7Iwjpi0kOVNp/hUTSU2ai/Bw5t95GicgemOL6nEFrHGy/1bw Bh0ffCl5NGsf+/UphZNpmEtogy8MQhp/BDSNg8luQ2AixKs2X6D+p9hSn0e9HRdgzFPF fkjAebl20FaMQ/l9XzP5kbLv1LeVe+Q8ZuB3IaLeVO79r4RyTDxDK8HCHiFactKhcbZa 6hKiksZanj21XFvHsa3a34lJZGT4AnfloJsdv9a86X/aEFDJIiZz6XtODoz/CUALw7DM 7RLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=pdCEXdOw; 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 ce18si3918025ejc.54.2020.04.29.05.51.00; Wed, 29 Apr 2020 05:51:24 -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=pdCEXdOw; 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 S1726830AbgD2MrX (ORCPT + 99 others); Wed, 29 Apr 2020 08:47:23 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:12132 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726516AbgD2MrW (ORCPT ); Wed, 29 Apr 2020 08:47:22 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1588164442; x=1619700442; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=LEhvbl4WlekKWmbg/2lD8LPKggXeYFxSwkdByXNxcTk=; b=pdCEXdOwDf9ND9sVyKPxq9v0FL5I4XzDjRfyz8fsf4ehzcv7oq4FHOUG drZIoM8Ye0wULB7I87Gl3Eo5VHBi0nbQjFf1yTx1AE5WohHjhLVgHrx03 +rXI25KqLpzGNzdgx/IoglCKcXmKYtXdTRgdxAYljfEsjFLkZjIJF/TxV I=; IronPort-SDR: mhZCJa8uJhgMLwqhwkw52ytelEyFsOE7paWAt3slCFamNK5SavKc8Z5U7Pu81Asxs1ra/jc7r1 o/yym1EuQ4LA== X-IronPort-AV: E=Sophos;i="5.73,332,1583193600"; d="scan'208";a="27817102" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-e34f1ddc.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 29 Apr 2020 12:47:09 +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 C196EA1C49; Wed, 29 Apr 2020 12:46:57 +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; Wed, 29 Apr 2020 12:46:57 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.200) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 29 Apr 2020 12:46:39 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v7 1/7] mm/madvise: Export do_madvise() to external GPL modules Date: Wed, 29 Apr 2020 14:45:34 +0200 Message-ID: <20200429124540.32232-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200429124540.32232-1-sjpark@amazon.com> References: <20200429124540.32232-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.200] X-ClientProxiedBy: EX13D06UWC004.ant.amazon.com (10.43.162.97) 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