2020-05-25 09:20:08

by SeongJae Park

[permalink] [raw]
Subject: [PATCH v13 02/15] mm/page_ext: Export lookup_page_ext() to GPL modules

From: SeongJae Park <[email protected]>

This commit exports 'lookup_page_ext()' to GPL modules. This will be
used by DAMON.

Signed-off-by: SeongJae Park <[email protected]>
---
mm/page_ext.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/page_ext.c b/mm/page_ext.c
index 4ade843ff588..71169b45bba9 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


2020-05-27 15:44:01

by Leonard Foerster

[permalink] [raw]
Subject: Re: [PATCH v13 02/15] mm/page_ext: Export lookup_page_ext() to GPL modules

On 2020-05-25T11:14:59+02:00 SeongJae Park <[email protected]> wrote:

> From: SeongJae Park <[email protected]>
>
> This commit exports 'lookup_page_ext()' to GPL modules. This will be
> used by DAMON.
>
> Signed-off-by: SeongJae Park <[email protected]>

Reviewed-by: Leonard Foerster <[email protected]>