]> git.hungrycats.org Git - linux/commit
sparc64: fix compile warning section mismatch in find_node()
authorThomas Tai <thomas.tai@oracle.com>
Sat, 12 Nov 2016 00:41:00 +0000 (16:41 -0800)
committerJiri Slaby <jslaby@suse.cz>
Tue, 13 Dec 2016 16:01:13 +0000 (17:01 +0100)
commitbc38f4f1a7d51f36112723fe6aa74800995c0ef4
treefb295071740e27df7516728dadc1377fe5cd6dc4
parentd68ed46bd6c06585e61556d4a7171d8ea198101c
sparc64: fix compile warning section mismatch in find_node()

[ Upstream commit 87a349f9cc0908bc0cfac0c9ece3179f650ae95a ]

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.

Signed-off-by: Thomas Tai <thomas.tai@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
arch/sparc/mm/init_64.c