]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/mm: Fix section mismatch for read_n_cells
authorDavid Rientjes <rientjes@google.com>
Thu, 8 Dec 2011 12:46:37 +0000 (12:46 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Mon, 19 Dec 2011 03:41:18 +0000 (14:41 +1100)
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>
arch/powerpc/mm/numa.c

index 8bb0b4d938d993e730c91d4c3d2489cb983731b6..5421566374873e8931bb400e698717dc61d31851 100644 (file)
@@ -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;