diff mbox series

mm: unexport page_init_poison

Message ID 20220207063446.1833404-1-hch@lst.de (mailing list archive)
State New
Headers show
Series mm: unexport page_init_poison | expand

Commit Message

Christoph Hellwig Feb. 7, 2022, 6:34 a.m. UTC
page_init_poison is only used in core MM code, so unexport it.

Signed-off-by: Christoph Hellwig <hch@lst.de>
---
 mm/debug.c | 1 -
 1 file changed, 1 deletion(-)

Comments

David Hildenbrand Feb. 7, 2022, 10:33 a.m. UTC | #1
On 07.02.22 07:34, Christoph Hellwig wrote:
> page_init_poison is only used in core MM code, so unexport it.
> 
> Signed-off-by: Christoph Hellwig <hch@lst.de>
> ---
>  mm/debug.c | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/mm/debug.c b/mm/debug.c
> index bc9ac87f0e08d0..8b43dbb2f17bea 100644
> --- a/mm/debug.c
> +++ b/mm/debug.c
> @@ -265,5 +265,4 @@ void page_init_poison(struct page *page, size_t size)
>  	if (page_init_poisoning)
>  		memset(page, PAGE_POISON_PATTERN, size);
>  }
> -EXPORT_SYMBOL_GPL(page_init_poison);
>  #endif		/* CONFIG_DEBUG_VM */

Reviewed-by: David Hildenbrand <david@redhat.com>
diff mbox series

Patch

diff --git a/mm/debug.c b/mm/debug.c
index bc9ac87f0e08d0..8b43dbb2f17bea 100644
--- a/mm/debug.c
+++ b/mm/debug.c
@@ -265,5 +265,4 @@  void page_init_poison(struct page *page, size_t size)
 	if (page_init_poisoning)
 		memset(page, PAGE_POISON_PATTERN, size);
 }
-EXPORT_SYMBOL_GPL(page_init_poison);
 #endif		/* CONFIG_DEBUG_VM */