Received: by 2002:a25:868d:0:0:0:0:0 with SMTP id z13csp2652639ybk; Tue, 12 May 2020 04:59:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsa7W7uIqM1LF8ceaUVBr2f6ap5HD+/UEdiVL+KkxpDsVo3tXbctxoqc8GDW5YzUkbcsXD X-Received: by 2002:a50:e04c:: with SMTP id g12mr2413119edl.74.1589284755403; Tue, 12 May 2020 04:59:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1589284755; cv=none; d=google.com; s=arc-20160816; b=Mv+8uRsr8IPpY1qN7M4/ThZ77XlKCmIt9dM6UFfCRDzK36M5xoYsPj4/Wwz9cMCuHP WzSZ8gPBlz6dqHzBwbmfccMWJ8WxapcxHGJ2UJ8TIYNjLolWM8EUfwU2K4VFcuj9q/QY BOudilA/l4grQvIHOGTenMdY67iqyB3BWJarvXUhgYwOMrgWrizHQ2OYTj60ugT0UssU u4VS3WS/gX9TdiPuIFIxq0fgiCqaNPc4RgAwjtXfzRlxAgRjplB+qCyd9ykaYSR12Etl YvsXDyG+AEEz/F5ZcZxPeUNGXmFK+K+bqbmOXb4QCoQ3q1GeY1osPFRDXOy2qdbeHYR/ hYYA== 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=oV+3OD8QQTaFSM164M3QpF9UFlQ1K6enZ03RPUvyTBJYtBWcgxEltarR8pfDqllCy2 viuD/JUhSeq4TfoO0L75adPa5zQj4NHDuCL+SFB2ML2euf4tAxa8uayhCjXF+LBJVSWt waNVCYORVtVkLB9YkwRButazIMtzghcK595iUBtjgsk38qXSdfKitZMSxUswHSAxd3yY k3hqSg/DTJ4rGxDVbMFk9IFObMzcU3efa08Mf2VhTqp4M0lelNUllRA9EzEIQ+7u3WGo Vyg2Bt/T21VwY28Ux33LTZpG5rLfYeMvhzs+QhYWa50Ju4iPPLmGwsd8bttTn/IsmGvW Cchw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amazon.com header.s=amazon201209 header.b=LFm2gpOY; 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 p11si2689287edx.300.2020.05.12.04.58.52; Tue, 12 May 2020 04:59:15 -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=LFm2gpOY; 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 S1729772AbgELLy7 (ORCPT + 99 others); Tue, 12 May 2020 07:54:59 -0400 Received: from smtp-fw-4101.amazon.com ([72.21.198.25]:62801 "EHLO smtp-fw-4101.amazon.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729634AbgELLy7 (ORCPT ); Tue, 12 May 2020 07:54:59 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1589284499; x=1620820499; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version; bh=LEhvbl4WlekKWmbg/2lD8LPKggXeYFxSwkdByXNxcTk=; b=LFm2gpOY4eu4opJolZvn3IkG06DVq9SPvKIsCuund70/mi/IAqfV/exP RKYtssp7sHzFDXFtD30c/hBnmnH0bfZuY21P3/lYeIa3ShjURxCLU27Zq 1pYB1oXCDelUOao+oj5soAk5GTsdcyr7RmOZdH3XVCus75O8JxWDE53Cd 0=; IronPort-SDR: L6d/06aKzrtiMUJtvBfKoFsRjcgNhg1kVpfegBaW2QZzBuBuVMnd+eGm1VtTs7k3mZZ4RMrNnL zw8t9Qaa97fA== X-IronPort-AV: E=Sophos;i="5.73,383,1583193600"; d="scan'208";a="29888918" Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-4101.iad4.amazon.com with ESMTP; 12 May 2020 11:54:43 +0000 Received: from EX13MTAUEA002.ant.amazon.com (pdx4-ws-svc-p6-lb7-vlan2.pdx.amazon.com [10.170.41.162]) by email-inbound-relay-2a-f14f4a47.us-west-2.amazon.com (Postfix) with ESMTPS id BA702A2117; Tue, 12 May 2020 11:54:39 +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, 12 May 2020 11:54:38 +0000 Received: from u886c93fd17d25d.ant.amazon.com (10.43.160.100) by EX13D31EUA001.ant.amazon.com (10.43.165.15) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Tue, 12 May 2020 11:54:21 +0000 From: SeongJae Park To: CC: SeongJae Park , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , Subject: [RFC v8 1/8] mm/madvise: Export do_madvise() to external GPL modules Date: Tue, 12 May 2020 13:53:36 +0200 Message-ID: <20200512115343.27699-2-sjpark@amazon.com> X-Mailer: git-send-email 2.17.1 In-Reply-To: <20200512115343.27699-1-sjpark@amazon.com> References: <20200512115343.27699-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.43.160.100] X-ClientProxiedBy: EX13D17UWB003.ant.amazon.com (10.43.161.42) 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