Re: linux-next: build warning after merge of the ftrace tree

From: Masami Hiramatsu
Date: Mon Oct 25 2021 - 02:13:37 EST


On Mon, 25 Oct 2021 15:39:42 +1100
Stephen Rothwell <sfr@xxxxxxxxxxxxxxxx> wrote:

> Hi all,
>
> After merging the ftrace tree, today's linux-next build (x86_64
> allmodconfig) produced this warning:
>
> WARNING: modpost: vmlinux.o(.text.unlikely+0x90082): Section mismatch in reference from the function xbc_alloc_mem() to the function .init.text:memblock_alloc_try_nid()
> The function xbc_alloc_mem() references
> the function __init memblock_alloc_try_nid().
> This is often because xbc_alloc_mem lacks a __init
> annotation or the annotation of memblock_alloc_try_nid is wrong.
>
> Introduced by commit
>
> 4ee1b4cac236 ("bootconfig: Cleanup dummy headers in tools/bootconfig")

Thanks for reporting!
Let me fix that.



>
> --
> Cheers,
> Stephen Rothwell


--
Masami Hiramatsu <mhiramat@xxxxxxxxxx>