Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp929703ybh; Mon, 13 Jul 2020 05:10:10 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwmzznI00yYa8fFo0EZfY4t5bYcLodK2qRiB3khzUkq7urRxUOzjT/Hytvb0MIcqNZcZCkh X-Received: by 2002:a17:906:4a17:: with SMTP id w23mr76734616eju.360.1594642210805; Mon, 13 Jul 2020 05:10:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594642210; cv=none; d=google.com; s=arc-20160816; b=FPQrPRR7UGlhK44eFN4SEp2BlHH5dWoOGk7XFxU17xtmGU+TcryK5wAIgxCF5UA5JI 26VKGcX23CRNhgiljc79xyko+hJfj4s8wl4HD1XkByG92NC5/sBCrKMeAQzF8eGa1tZI 3TTqYh2i9btzi91Ey7gFNk7idvNSpQnjE+OJusDVvKdSaLkqN2vHaigwNBQeq+7tqTRh KLBB/XVeV+khLDPTnweoH8/rkCS7teyxbyIDQk1IyP5bRxWScOByWWaqz0/H9YHbQHRe 2tnJXVsDGLkszHxtDZK5mM3l+c+HBaTzKgIu4sJa3bzCjYo3ELvJl6iBSfUWMmdk6Gbn QyOg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=ZX7UVjkfKujVJJDCcQNc8lPTyipOV0I0C1KHFftlE7M=; b=LU+vE5wOSV5OewjPAC7tcfu1pMJ/Qel85lnDkF9lLaoWXJtDWDebHQN5uV8w4Ns8By cT71uuPIQ195+WqKG8zCj/DMISdesc8LvE48PGstGP9AldRetRVfHNCnilodH4IMqOSN y4Ap3R4OgmYmnUB96k1WH862p0XTxjlC4sC4w0vVGvPGRTfjCvvA2Q71zFMzkxeTfUIz 4C0Pn/WKVEJmnvl/n7rhCRP4XKk0ZGd8Y4h+2Q/rFUqgLkYa7AcZkCEfqUZGcjplg13e kz5B4D1a89rKYDU3eigKgW3XiCLvZwirI6JNpxRmvXdNMxdT6lMTV9/G3fdAUl0M8p5G BLTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ARRPO0hM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dt5si12261443ejc.335.2020.07.13.05.09.47; Mon, 13 Jul 2020 05:10:10 -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=@kernel.org header.s=default header.b=ARRPO0hM; 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=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729613AbgGMMI5 (ORCPT + 99 others); Mon, 13 Jul 2020 08:08:57 -0400 Received: from mail.kernel.org ([198.145.29.99]:60338 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728714AbgGMMI5 (ORCPT ); Mon, 13 Jul 2020 08:08:57 -0400 Received: from kernel.org (unknown [87.71.40.38]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 3C956206F0; Mon, 13 Jul 2020 12:08:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594642136; bh=1qbvfcMKN5hP6zOyDUgdL4znQEsqmFuoCgnlTBk45c0=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=ARRPO0hM3y8uwt5JcDs+5sqPXZ3hHBPVOJ46tDyorL8sz4Bs1R8hgfjZDOYNei8fo gwttVzG88WukbjWmZ4IKta16HDiOLLztQ1vR8jhKYYeJxvfs8DfuXWLCTVj2MBDGXu UVgp5HqYslkA2AB+3T+V0xfVLYIDsnoW/qcY3JXE= Date: Mon, 13 Jul 2020 15:08:42 +0300 From: Mike Rapoport To: SeongJae Park Cc: akpm@linux-foundation.org, SeongJae Park , Jonathan.Cameron@huawei.com, aarcange@redhat.com, acme@kernel.org, alexander.shishkin@linux.intel.com, amit@kernel.org, benh@kernel.crashing.org, brendan.d.gregg@gmail.com, brendanhiggins@google.com, cai@lca.pw, colin.king@canonical.com, corbet@lwn.net, david@redhat.com, dwmw@amazon.com, foersleo@amazon.de, irogers@google.com, jolsa@redhat.com, kirill@shutemov.name, mark.rutland@arm.com, mgorman@suse.de, minchan@kernel.org, mingo@redhat.com, namhyung@kernel.org, peterz@infradead.org, rdunlap@infradead.org, riel@surriel.com, rientjes@google.com, rostedt@goodmis.org, sblbir@amazon.com, shakeelb@google.com, shuah@kernel.org, sj38.park@gmail.com, snu@amazon.de, vbabka@suse.cz, vdavydov.dev@gmail.com, yang.shi@linux.alibaba.com, ying.huang@intel.com, linux-damon@amazon.com, linux-mm@kvack.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v18 01/14] mm/page_ext: Export lookup_page_ext() to GPL modules Message-ID: <20200713120842.GA707159@kernel.org> References: <20200713084144.4430-1-sjpark@amazon.com> <20200713084144.4430-2-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713084144.4430-2-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, On Mon, Jul 13, 2020 at 10:41:31AM +0200, SeongJae Park wrote: > From: SeongJae Park > > This commit exports 'lookup_page_ext()' to GPL modules. It will be used > by DAMON in following commit for the implementation of the region based > sampling. Maybe I'm missing something, but why is DAMON a module? > Signed-off-by: SeongJae Park > Reviewed-by: Leonard Foerster > Reviewed-by: Varad Gautam > --- > mm/page_ext.c | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/mm/page_ext.c b/mm/page_ext.c > index a3616f7a0e9e..9d802d01fcb5 100644 > --- a/mm/page_ext.c > +++ b/mm/page_ext.c > @@ -131,6 +131,7 @@ struct page_ext *lookup_page_ext(const struct page *page) > MAX_ORDER_NR_PAGES); > return get_entry(base, index); > } > +EXPORT_SYMBOL_GPL(lookup_page_ext); > > static int __init alloc_node_page_ext(int nid) > { > -- > 2.17.1 > -- Sincerely yours, Mike.