[PATCH 1/3] mm: vmalloc: export __vmalloc_node_range

Mary Strodl
2024-07-18T01:25:21Z

After the ability to allocate PAGE_KERNEL_EXEC memory was removed
from __vmalloc, this seems like the least invasive way to expose
the capability to drivers that need it.

Exports __vmalloc_node_range so that drivers can use it.

Signed-off-by: Mary Strodl <mstrodl@csh.rit.edu>
---
mm/vmalloc.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/mm/vmalloc.c b/mm/vmalloc.c
index e34ea860153f..037b7e0fe430 100644
--- a/mm/vmalloc.c
+++ b/mm/vmalloc.c
@@ -3879,6 +3879,7 @@ void *__vmalloc_node_range_noprof(unsigned long size, unsigned long align,

return NULL;
}
+EXPORT_SYMBOL(__vmalloc_node_range_noprof);

/**
* __vmalloc_node - allocate virtually contiguous memory
--
2.45.2