Thread (22 messages) 22 messages, 3 authors, 2021-05-25

Re: [RFC V2] mm: Enable generic pfn_valid() to handle early sections with memmap holes

From: Mike Rapoport <rppt@kernel.org>
Date: 2021-04-22 12:20:11
Also in: linux-mm, lkml

On Thu, Apr 22, 2021 at 04:53:36PM +0530, Anshuman Khandual wrote:
On 4/22/21 1:57 PM, Mike Rapoport wrote:
...
quoted
quoted
diff --git a/mm/memblock.c b/mm/memblock.c
index 3abf2c3fea7f..93f8a9c8428d 100644
--- a/mm/memblock.c
+++ b/mm/memblock.c
@@ -1740,6 +1740,7 @@ bool __init_memblock memblock_is_memory(phys_addr_t addr)
 {
 	return memblock_search(&memblock.memory, addr) != -1;
 }
+EXPORT_SYMBOL(memblock_is_memory);
Please make it inside #ifdef CONFIG_ARCH_MEMBLOCK
CONFIG_ARCH_KEEP_MEMBLOCK ?
Yeah, _KEEP went away somehow :)
Wrap it around the EXPORT_SYMBOL() or the entire function
memblock_is_memory().
EXPORT_SYMBOL(). Otherwise we'll have exported __init function.
 
-- 
Sincerely yours,
Mike.

_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help