Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp282379ybg; Wed, 3 Jun 2020 00:15:40 -0700 (PDT) X-Google-Smtp-Source: ABdhPJykGpKmJwA7m3EDfiY7Vg+kQz+RKOwzm5zeTNK7Cyu6Of8PT7gXBBPpmv+8+5T9PzV1I9TH X-Received: by 2002:a50:cf4c:: with SMTP id d12mr30207080edk.121.1591168540444; Wed, 03 Jun 2020 00:15:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591168540; cv=none; d=google.com; s=arc-20160816; b=OiTUGHzPNwQC/gJaHeq7SQmTtnGrrqOdlCMsaAaQlOygA1GSQHDtjqhxMDKBTlW/lX d/QzJBoxK/+9d3yKb+oeA7MvWmcRCD3ZbmvRHBHfVErEmgbMEn/1vTKiF9oUgNyIzgO3 mJss3r+aOooHHOgU+04rFE5MNio8NN2rYE3POVya2rGH2iiwrFYq8+2Mp7NtiDll1Obn VvFV7oTKm1gko0lSyPmLIVZiWbS9OAnGsKUHBnP2RpMn5yyz7zJU1cAcyMJ7C5RRvoxb 4SRhC5/YqzOYK6VAfIOjF3RGxGN73yUCuHB5AO2o5o+B6j5o2kII5KE4wu9TDILCVOG6 cwmw== 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=rtioeQkMn0Pma4gKo7sVMqSEBeA0CiGSdY1D5eChyRv5ABlXLZ299hiZBxq/nyd1+N 6IctN2j4qTd0vjh5y3rbkMn2QdQS6dvfWNNQJmqPTTNDgxKZhVpnDylPcwS3AU/L2UWa 685jiiF2E/5A8mC9h4JNaGyItG/Rzg6qmDVegtljcTfAQJdv0E6JgPwXPglTKgn0nzol 4I4ZDCsdI+FqGPGkaBQgkibhVlK1gCbfIhcasCM+DFYfquczkjhUeIIpblLHUoNs/koe YOQPTzF2gwPYEyEBDwhY48Z7IvzJVByQiOtFP+zZ5bPQg2LK/rTKZyMTf/MxwYtv8S9z U9tw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=SpbxWH2f; 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 k24si643199eds.422.2020.06.03.00.15.17; Wed, 03 Jun 2020 00:15:40 -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=SpbxWH2f; 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 S1726011AbgFCHNK (ORCPT + 99 others); Wed, 3 Jun 2020 03:13:10 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:5622 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725275AbgFCHNK (ORCPT ); Wed, 3 Jun 2020 03:13:10 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1591168389; x=1622704389; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=lNFxVu5oHwO1aOURXAUvUJJi5lK2SkZMFrjh4Wym42s=; b=SpbxWH2fw+duj0UY9nzktm5w4M/1ZwN77XNppN0JUFjvXjUJN//Ixdmi fgozhH87/MBN8zJoUEeu6fvqIOmW7sLFtuEm0Kurm2Aczs2Py2R9wotuP MMQVE7VvLki4axiG3F5MLt33FhM78btANBMQ2ZZ3TbLejs/DFa9eLYfzx k=; IronPort-SDR: YTb1zGhebK0YF8XKZG+sGwMlQwqKPLhAuzZHlNyFY7Dr2gZv/c82KfRvUbip+O5rgupPQKEKPt w7kI9jtL5aug== X-IronPort-AV: E=Sophos;i="5.73,467,1583193600"; d="scan'208";a="34063678" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 03 Jun 2020 07:12:58 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan3.iad.amazon.com [10.40.159.166]) by email-inbound-relay-1e-303d0b0e.us-east-1.amazon.com (Postfix) with ESMTPS id 759B3A2A37; Wed, 3 Jun 2020 07:12:46 +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, 3 Jun 2020 07:12:45 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.26) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Wed, 3 Jun 2020 07:12:29 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v10 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Wed, 3 Jun 2020 09:11:31 +0200 Message-ID: <20200603071138.8152-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200603071138.8152-1-sjpark@amazon.com> References: <20200603071138.8152-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.26] X-ClientProxiedBy: EX13D10UWB003.ant.amazon.com (10.43.161.106) 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