Re: [PATCH 3/9] ARM: make free_memmap as __init

2016-02-18 Thread Nicolas Pitre
On Thu, 18 Feb 2016, Arnd Bergmann wrote: > free_memmap is an inline function, but gcc may choose to ignore that > when CONFIG_OPTIMIZE_INLINING is set. In that case it is put in the > .text section, causing a kbuild warning: > > WARNING: vmlinux.o(.text.unlikely+0x1a0): Section mismatch in refer

[PATCH 3/9] ARM: make free_memmap as __init

2016-02-18 Thread Arnd Bergmann
free_memmap is an inline function, but gcc may choose to ignore that when CONFIG_OPTIMIZE_INLINING is set. In that case it is put in the .text section, causing a kbuild warning: WARNING: vmlinux.o(.text.unlikely+0x1a0): Section mismatch in reference from the function free_memmap() to the function