The patch titled Subject: memblock: annotate memblock_is_reserved() with __init_memblock has been added to the -mm tree. Its filename is memblock-anonotate-memblock_is_reserved-with-__init_memblock.patch This patch should soon appear at http://ozlabs.org/~akpm/mmots/broken-out/memblock-anonotate-memblock_is_reserved-with-__init_memblock.patch and later at http://ozlabs.org/~akpm/mmotm/broken-out/memblock-anonotate-memblock_is_reserved-with-__init_memblock.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/process/submit-checklist.rst when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Yueyi Li <liyueyi@xxxxxxxx> Subject: memblock: annotate memblock_is_reserved() with __init_memblock Found warning: WARNING: EXPORT symbol "gsi_write_channel_scratch" [vmlinux] version generation failed, symbol will not be versioned. WARNING: vmlinux.o(.text+0x1e0a0): Section mismatch in reference from the function valid_phys_addr_range() to the function .init.text:memblock_is_reserved() The function valid_phys_addr_range() references the function __init memblock_is_reserved(). This is often because valid_phys_addr_range lacks a __init annotation or the annotation of memblock_is_reserved is wrong. Use __init_memblock instead of __init. Link: http://lkml.kernel.org/r/BLUPR13MB02893411BF12EACB61888E80DFAE0@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx Signed-off-by: Yueyi Li <liyueyi@xxxxxxxx> Acked-by: Michal Hocko <mhocko@xxxxxxxx> Reviewed-by: David Hildenbrand <david@xxxxxxxxxx> Acked-by: Mike Rapoport <rppt@xxxxxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- mm/memblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/mm/memblock.c~memblock-anonotate-memblock_is_reserved-with-__init_memblock +++ a/mm/memblock.c @@ -1727,7 +1727,7 @@ static int __init_memblock memblock_sear return -1; } -bool __init memblock_is_reserved(phys_addr_t addr) +bool __init_memblock memblock_is_reserved(phys_addr_t addr) { return memblock_search(&memblock.reserved, addr) != -1; } _ Patches currently in -mm which might be from liyueyi@xxxxxxxx are memblock-anonotate-memblock_is_reserved-with-__init_memblock.patch