]> git.baikalelectronics.ru Git - kernel.git/commit
mm: fix section mismatch warning
authorLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2016 22:23:32 +0000 (15:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 27 May 2016 22:23:32 +0000 (15:23 -0700)
commit1d9b4932595bed1c3674023d2ceb1e3536026e7e
treeddfb19e97fe455c6826b3a4de136195bde184338
parent94585f8ddd1310b562e3926382809db4b5cd491d
mm: fix section mismatch warning

The register_page_bootmem_info_node() function needs to be marked __init
in order to avoid a new warning introduced by commit 683bab3d3482 ("mm:
use early_pfn_to_nid in register_page_bootmem_info_node").

Otherwise you'll get a warning about how a non-init function calls
early_pfn_to_nid (which is __meminit)

Cc: Yang Shi <yang.shi@linaro.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/memory_hotplug.h
mm/memory_hotplug.c