Received: by 2002:a25:e74b:0:0:0:0:0 with SMTP id e72csp1141781ybh; Mon, 13 Jul 2020 10:20:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxFUSikheO/IYAJ9PIDoR2/7K4FUc3Honhlu4jXZR1qSulf2ngtH2CKcTV+4JjYASGBEnOo X-Received: by 2002:a17:906:3ac4:: with SMTP id z4mr681662ejd.65.1594660806997; Mon, 13 Jul 2020 10:20:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1594660806; cv=none; d=google.com; s=arc-20160816; b=F2+4P2il/kcqi7zUfEeBOINHAPVOPEUP3GljhYkCpMoB234E5sGAFVRNXAUbb6+wFu PD2IFQDqeDvUp8yVbCOkdYaVQpyJaehi6VkmL5Yf4Uu2bT4vVgFx2JG2NJxeqPTLoYoI rbFfC/D5GBwGkW76jVa5qdZEgYeKndYyv5xItX/Bb2cREAp6PBd1MsPmkUVQmlYHzP6i CqwiYtE0Fim0B1rlH3sW/PQVS28naummgzhS39eF8wbh3Mq4/C1m2RlhL9z2w9ssayIF JZVaYNf9YbdWL51FMDeizxkDDxO+UmfFPgKdAoGDKXDpeNZvlrsXonMjQLpwiJpwF9Z8 6O9A== 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=d57lbem8IFik62R9nVhxTH+2sac2pjI5PhiqveUezjA=; b=r2hYGxxXpdPqplP9fo52EzDK0XEmboPmqa/T8y+olhYly08hdHIuQUfrCvXgtBAMQc NGiHAPO8qDYVMg4hN5gX06Cz+rkLP+Xntg8w6RMZMlBfxHmyq3zU59hckqKqL3coDrOr l3SXPcEkjRSGLbQ85qDhSdYoRr3RzSsbcCPVxzAOOuIuQorW7T1v7w41rCjiv5Fo21IO IJg9UwvWauJj+JdR2zr78ra04++iU014T9Ug4D9iWstEQqG4Vx8NZhbiM3+9ytJ7ivAz cwyeMoHP9rk/84aIFRP29e3KL5kRhLPRXO7OE6s6YSbRDvytyalcTyAeiE1LsRJJBNku 233Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=nq6ZaUDO; 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 ot25si10020258ejb.647.2020.07.13.10.19.43; Mon, 13 Jul 2020 10:20:06 -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=nq6ZaUDO; 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 S1729855AbgGMRTY (ORCPT + 99 others); Mon, 13 Jul 2020 13:19:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:48756 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729700AbgGMRTY (ORCPT ); Mon, 13 Jul 2020 13:19:24 -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 ED7A52076D; Mon, 13 Jul 2020 17:19:12 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1594660763; bh=0k8BUut5NzNNQwiO0L2A/+mx7GyTyHo9V1LEsdu4Yvk=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=nq6ZaUDOSYOgNEz42ctfMWWTtbQIsEktGMHIVqt+ZbugW+JAqF+Uk/l4eUoaICfrK qpl5QnlfENNpZuqYvlnU5GVVSC/PQoqDxyju6k7Uz83oez60iNAWcbjJ8U+FBrqrJp Qbwjt81Fftb6wKdXuojHc2vilJafu4VHptk80hB8= Date: Mon, 13 Jul 2020 20:19:09 +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: Re: [PATCH v18 01/14] mm/page_ext: Export lookup_page_ext() to GPL modules Message-ID: <20200713171909.GD707159@kernel.org> References: <20200713120842.GA707159@kernel.org> <20200713122143.25493-1-sjpark@amazon.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200713122143.25493-1-sjpark@amazon.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jul 13, 2020 at 02:21:43PM +0200, SeongJae Park wrote: > On Mon, 13 Jul 2020 15:08:42 +0300 Mike Rapoport wrote: > > > 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? > > I made it loadable just for easier adoption from downstream kernels. I could > drop the module build support if asked. Well, exporting core mm symbols to modules should be considred very carefully. Why lookup_page_ext() is required for DAMON? It is not used anywhere in this patchset. > Thanks, > SeongJae Park > > > > > > 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. -- Sincerely yours, Mike.