2021-04-12 08:10:22

by Peter Zijlstra

[permalink] [raw]
Subject: [PATCH 1/7] mm: Unexport apply_to_existing_page_range()

There are no modular in-tree users, remove the EXPORT.

This is an unsafe function in that it gives direct access to the
page-tables.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
---
mm/memory.c | 1 -
1 file changed, 1 deletion(-)

--- a/mm/memory.c
+++ b/mm/memory.c
@@ -2558,7 +2558,6 @@ int apply_to_existing_page_range(struct
{
return __apply_to_page_range(mm, addr, size, fn, data, false);
}
-EXPORT_SYMBOL_GPL(apply_to_existing_page_range);

/*
* handle_pte_fault chooses page fault handler according to an entry which was



2021-04-12 08:15:39

by Christoph Hellwig

[permalink] [raw]
Subject: Re: [PATCH 1/7] mm: Unexport apply_to_existing_page_range()

On Mon, Apr 12, 2021 at 10:00:13AM +0200, Peter Zijlstra wrote:
> There are no modular in-tree users, remove the EXPORT.
>
> This is an unsafe function in that it gives direct access to the
> page-tables.
>
> Signed-off-by: Peter Zijlstra (Intel) <[email protected]>

Looks good,

Reviewed-by: Christoph Hellwig <[email protected]>