summaryrefslogtreecommitdiff
path: root/arch/powerpc/mm
diff options
context:
space:
mode:
authorDavid Rientjes <rientjes@google.com>2011-12-08 12:46:37 +0000
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>2011-12-19 14:41:18 +1100
commit2011b1d0d31ae469c7a075061e03b7d4f5b49ba6 (patch)
treec96f73a8dafe4c298842bb6896073841c2520cbe /arch/powerpc/mm
parent28e86bdbc9863d3d81711db02abedbc54528099e (diff)
downloadlinux-3.10-2011b1d0d31ae469c7a075061e03b7d4f5b49ba6.tar.gz
linux-3.10-2011b1d0d31ae469c7a075061e03b7d4f5b49ba6.tar.bz2
linux-3.10-2011b1d0d31ae469c7a075061e03b7d4f5b49ba6.zip
powerpc/mm: Fix section mismatch for read_n_cells
read_n_cells() cannot be marked as .devinit.text since it is referenced from two functions that are not in that section: of_get_lmb_size() and hot_add_drconf_scn_to_nid(). Signed-off-by: David Rientjes <rientjes@google.com> Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc/mm')
-rw-r--r--arch/powerpc/mm/numa.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/numa.c b/arch/powerpc/mm/numa.c
index 8bb0b4d938d..54215663748 100644
--- a/arch/powerpc/mm/numa.c
+++ b/arch/powerpc/mm/numa.c
@@ -406,7 +406,7 @@ static void __init get_n_mem_cells(int *n_addr_cells, int *n_size_cells)
of_node_put(memory);
}
-static unsigned long __devinit read_n_cells(int n, const unsigned int **buf)
+static unsigned long read_n_cells(int n, const unsigned int **buf)
{
unsigned long result = 0;