diff options
author | Scott Wood <scottwood@freescale.com> | 2014-08-02 05:07:40 +0200 |
---|---|---|
committer | Benjamin Herrenschmidt <benh@kernel.crashing.org> | 2014-08-05 07:40:49 +0200 |
commit | 7d17622159a3f0e9d4bf02a819cf003241e1c688 (patch) | |
tree | 5fd956968464f68d6928e594c02ca8f1dd40eff5 /arch/powerpc/mm/pgtable_64.c | |
parent | powerpc/cpuidle: Fix parsing of idle state flags from device-tree (diff) | |
download | linux-7d17622159a3f0e9d4bf02a819cf003241e1c688.tar.xz linux-7d17622159a3f0e9d4bf02a819cf003241e1c688.zip |
powerpc/64e: Add __ref to early_alloc_pgtable()
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>
Diffstat (limited to 'arch/powerpc/mm/pgtable_64.c')
-rw-r--r-- | arch/powerpc/mm/pgtable_64.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/powerpc/mm/pgtable_64.c b/arch/powerpc/mm/pgtable_64.c index f6ce1f111f5b..3b3c4d34c7a0 100644 --- a/arch/powerpc/mm/pgtable_64.c +++ b/arch/powerpc/mm/pgtable_64.c @@ -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; |