Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp886339ybt; Tue, 7 Jul 2020 02:42:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzKKje/INBn0jX4tJucK2hXoptVGkIRO30ofUGNHWucpRA8V49cCwJ3mUzmehylcI/CSt0C X-Received: by 2002:a17:906:1c05:: with SMTP id k5mr45513085ejg.320.1594114940275; Tue, 07 Jul 2020 02:42:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594114940; cv=none; d=google.com; s=arc-20160816; b=lO60zIJQYa5v6cQHbVptW9vdMaubthBAbvN8r2hPN4OGD5PG0MyEGqFHO4K16zRK+/ 66sOOl0C8MVyrwHjdIBIt0g3sDsRv35Y2hUVnyihpTudv72BxGRrKgECRQV07zdnxknP 23Z7fE0M2JZsX3z4nnKzaMYde3HRPXp1IfXRNPHcRQzoyJEp7kbIvGF4BtKwKMhdrAgb 7WiTFWa5x0VOLrwJQdbOg9+8sXxhVPxyIo4BFCTT0ba7A5/JpdVVCoxMr/75Cmae8ddD yPF8IxA4uejmv80uGHM7rN85yTh9F686/Lq5llhYF7jUunUi/aNGwpytYmz6UPu+GiFb s8uQ== 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=xSG//maXaHZtF46YzuYzPc64nIHoARTsB5tiEApr0YWLD8zdo2E4YgtD8ClQ0DHyRS M51ZmcPh+97V9lWg87R9Y0YqaRqv2uHMbMS6PgygpqHsqYzly/pRtuHmVr6fAQ0DFHdl G+SjwvvTV0sLN4ErMggt84nzYF48pBuYOTSEuADG56JKX01VqtUBIP5gBfn6a1RGDzrq fHCJtklunlLrlmiQ3Z6+ZT6h7E/MLmAC4Ypd4++DO2avaWrJMP4N5Mjqmh4ldKYwKXWH 6xngkZCicxN03T6Ut4nvtMtMatFmV64VnOzTqIaNEN+4La/ihZNcany9PRLh748B1cTD 3uhg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=WT6XOxC9; 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 h19si14384137ejj.80.2020.07.07.02.41.56; Tue, 07 Jul 2020 02:42:20 -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=WT6XOxC9; 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 S1728066AbgGGJjV (ORCPT + 99 others); Tue, 7 Jul 2020 05:39:21 -0400 Received: from smtp-fw-2101.amazon.com ([72.21.196.25]:15270 "EHLO smtp-fw-2101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727120AbgGGJjU (ORCPT ); Tue, 7 Jul 2020 05:39:20 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1594114760; x=1625650760; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=lNFxVu5oHwO1aOURXAUvUJJi5lK2SkZMFrjh4Wym42s=; b=WT6XOxC9DtjDXimDd8ZyWxOIAWq4inc2rlk6rdwFK8qzFIkWWM+qKBvT xB4jnY2VH/GTtaF7SXFws8PJFoYoy+8F6wp+jiGEc3NPsD9tGIFU0ER1c uhAHHlYWoU21TOGi21dVoivfV2E9s7b8D/+qxVuz7aU6Luph0V5pvoLX/ A=; IronPort-SDR: RDIgt/7x85wKzONYqvyOGIWXABm3hllzqTAOICmHhsoqsf3QD6hsEk7B3/ulqNY4nAKW8DuvXb eUl/L2Oxyr3g== X-IronPort-AV: E=Sophos;i="5.75,323,1589241600"; d="scan'208";a="40411054" Received: from iad12-co-svc-p1-lb1-vlan2.amazon.com (HELO email-inbound-relay-1e-a70de69e.us-east-1.amazon.com) ([10.43.8.2]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 07 Jul 2020 09:39:19 +0000 Received: from EX13MTAUEA002.ant.amazon.com (iad55-ws-svc-p15-lb9-vlan2.iad.amazon.com [10.40.159.162]) by email-inbound-relay-1e-a70de69e.us-east-1.amazon.com (Postfix) with ESMTPS id 44675A0836; Tue, 7 Jul 2020 09:39:06 +0000 (UTC) Received: from EX13D31EUA004.ant.amazon.com (10.43.165.161) by EX13MTAUEA002.ant.amazon.com (10.43.61.77) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 09:39:06 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.161.203) by EX13D31EUA004.ant.amazon.com (10.43.165.161) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 7 Jul 2020 09:38:49 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v13 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 7 Jul 2020 11:37:58 +0200 Message-ID: <20200707093805.4775-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200707093805.4775-1-sjpark@amazon.com> References: <20200707093805.4775-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.161.203] X-ClientProxiedBy: EX13D36UWA002.ant.amazon.com (10.43.160.24) To EX13D31EUA004.ant.amazon.com (10.43.165.161) 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