Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp283277ybg; Mon, 8 Jun 2020 23:57:55 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx9FABlWC1gETwBH8lAq29mP5JwLAW8q5HIiT/iFISMhRBzq9A48cTHc59whRiizK6QXNrv X-Received: by 2002:aa7:c942:: with SMTP id h2mr25953946edt.23.1591685875109; Mon, 08 Jun 2020 23:57:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591685875; cv=none; d=google.com; s=arc-20160816; b=xhtbYXZ1XV0QkKBytWWMl86IoV6yZGGgNXrQpc1VqkW7r9jXumNfXSeLVualtdZuIi 6ERdJsoSwPvKugvPrER+FkWzv1vyhAiyPyOnfrdaWJ3icjMmhOZlH0/zsMiGjWX9z5FG UFqqLxmtNJVR9OBwfM0/QR+OmK8lBTg4SxXlXzb8tjLZCQoeS4Pfmqn0KhNxXM3MgIzk 27n6AMx1MMDsIQliaAgw0z8cLnsku9LkmGnBPpsc1DUO3t2BKQ0ZQ2zWeTdduPs9ojbp d3ZbTR7q+m2a0dRlLC2uVO77YlWOqCAR2MJJLtsOqidDb3w86iypOVzRzJNtbTXthXeu PgiQ== 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=NrFrh+XhZXW2WLNRKgyDCjbCW6bti3JhLufpJVOS6GY600LA/itiw7D5wn+Acm9/M8 Q5sh3O2zCMHL0SrMh9IrAgjWOr/Qo7CCxsc+pRkZtaVAmTde0BtnJkZZQDknXI5ikTNk jGNvQfARNJ3GhDqbM14zTCt6zTdBLmlHZHPsf80vscpVp8/OQK8d4NJzuc0Q7muLBQCQ L8abCyioGsMxFadAwU4MhcKELt9tLBzLPDdBugHsZbiPmecbBUkkx/5sG2KJIV3xaQaF mdslUTft7K56C5XIbIQAlL6nYfrwH8+lAHe2jJ+gx+pmAdnQW3W4+8HvBalKbuqPovTK 3+vw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=jAUR2CWr; 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 n18si10444040edq.195.2020.06.08.23.57.32; Mon, 08 Jun 2020 23:57:55 -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=jAUR2CWr; 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 S1727953AbgFIGyi (ORCPT + 99 others); Tue, 9 Jun 2020 02:54:38 -0400 Received: from smtp-fw-6002.amazon.com ([52.95.49.90]:29133 "EHLO smtp-fw-6002.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726886AbgFIGyh (ORCPT ); Tue, 9 Jun 2020 02:54:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1591685677; x=1623221677; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=lNFxVu5oHwO1aOURXAUvUJJi5lK2SkZMFrjh4Wym42s=; b=jAUR2CWrc/h/gw/08tV/AICeur9Umct+3hTrSlQgNSOTTFOKjTNWbkRP WWzwwTRK7l/4ksIBbeUQMOscFgZrfcvEgiemePHmukoQNdQvVh1Pktmuv A5Hcf1DddrS6wwlXEPSOkjxfzgYMSGLmj5LG0lOMAmHb77vzJ09kP+NDE 8=; IronPort-SDR: UShAj2Uej1kh7Rr1O0yC2b+MYhK4GA3vPJjTgoZBvC4aw8+DZI233TMUsiyJl17gQVWxeffixo vKyaOiqs3DVw== X-IronPort-AV: E=Sophos;i="5.73,490,1583193600"; d="scan'208";a="35122812" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-1a-16acd5e0.us-east-1.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-6002.iad6.amazon.com with ESMTP; 09 Jun 2020 06:54:36 +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-16acd5e0.us-east-1.amazon.com (Postfix) with ESMTPS id 39E62A1F8E; Tue, 9 Jun 2020 06:54:24 +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, 9 Jun 2020 06:54:24 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.162.53) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 9 Jun 2020 06:54:07 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v11 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 9 Jun 2020 08:53:13 +0200 Message-ID: <20200609065320.12941-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200609065320.12941-1-sjpark@amazon.com> References: <20200609065320.12941-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.162.53] X-ClientProxiedBy: EX13D31UWA004.ant.amazon.com (10.43.160.217) 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