]> www.infradead.org Git - users/jedix/linux-maple.git/commit
sparc64: fix compile warning section mismatch in find_node()
authorThomas Tai <thomas.tai@oracle.com>
Fri, 11 Nov 2016 15:46:10 +0000 (10:46 -0500)
committerAllen Pais <allen.pais@oracle.com>
Sun, 22 Jan 2017 15:37:14 +0000 (21:07 +0530)
commitaab93ab50d3c0cf37e88f2b7ef3e16228b57c02f
tree363db8e4bdce8fcb5a170feda0d4bf04d29e6002
parentc9ebbc31544202515d53644a0a48f2cfc0df4d4c
sparc64: fix compile warning section mismatch in find_node()

A compile warning is introduced by a commit to fix the find_node().
This patch fix the compile warning by moving find_node() into __init
section. Because find_node() is only used by memblock_nid_range() which
is only used by a __init add_node_ranges(). find_node() and
memblock_nid_range() should also be inside __init section.

Orabug: 24674753

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
(cherry picked from commit e58d08f923190fc4dc2a1962710f84672c2bc9b2)
Signed-off-by: Allen Pais <allen.pais@oracle.com>
arch/sparc/mm/init_64.c