]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
powerpc/64e: Add __ref to early_alloc_pgtable()
authorScott Wood <scottwood@freescale.com>
Sat, 2 Aug 2014 03:07:40 +0000 (22:07 -0500)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 5 Aug 2014 05:40:49 +0000 (15:40 +1000)
This silences a section mismatch warning.  early_alloc_pgtable() is
called from map_kernel_page() which cannot be __init, but only when
slab_is_available() returns false which can only happen during early
boot.

Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
arch/powerpc/mm/pgtable_64.c

index f6ce1f111f5b143fb338274fb90e704013d47648..3b3c4d34c7a0ec48c08d037faa4260509541d6d6 100644 (file)
@@ -68,7 +68,7 @@
 unsigned long ioremap_bot = IOREMAP_BASE;
 
 #ifdef CONFIG_PPC_MMU_NOHASH
-static void *early_alloc_pgtable(unsigned long size)
+static __ref void *early_alloc_pgtable(unsigned long size)
 {
        void *pt;