diff options
author | Arnd Bergmann <arnd@arndb.de> | 2017-10-04 01:15:10 +0200 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2017-10-04 02:54:24 +0200 |
commit | 57148a64e823bb1f49112fa52a92a7f372cda892 (patch) | |
tree | 5d76ad7d70bba33cdc74aa0e3094f8dbbca52aef /drivers/rapidio/rio-access.c | |
parent | z3fold: fix stale list handling (diff) | |
download | linux-57148a64e823bb1f49112fa52a92a7f372cda892.tar.xz linux-57148a64e823bb1f49112fa52a92a7f372cda892.zip |
mm: meminit: mark init_reserved_page as __meminit
The function is called from __meminit context and calls other __meminit
functions but isn't it self mark as such today:
WARNING: vmlinux.o(.text.unlikely+0x4516): Section mismatch in reference from the function init_reserved_page() to the function .meminit.text:early_pfn_to_nid()
The function init_reserved_page() references the function __meminit early_pfn_to_nid().
This is often because init_reserved_page lacks a __meminit annotation or the annotation of early_pfn_to_nid is wrong.
On most compilers, we don't notice this because the function gets
inlined all the time. Adding __meminit here fixes the harmless warning
for the old versions and is generally the correct annotation.
Link: http://lkml.kernel.org/r/20170915193149.901180-1-arnd@arndb.de
Fixes: 7e18adb4f80b ("mm: meminit: initialise remaining struct pages in parallel with kswapd")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Mel Gorman <mgorman@techsingularity.net>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'drivers/rapidio/rio-access.c')
0 files changed, 0 insertions, 0 deletions