Skip to content

Commit

Permalink
powerpc/mm: Fix section mismatch for read_n_cells
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David Rientjes authored and Benjamin Herrenschmidt committed Dec 19, 2011
1 parent 28e86bd commit 2011b1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/powerpc/mm/numa.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit 2011b1d

Please sign in to comment.