Skip to content

Commit 7d17622

Browse files
Scott Woodozbenh
authored andcommitted
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 <[email protected]> Signed-off-by: Benjamin Herrenschmidt <[email protected]>
1 parent 95707d8 commit 7d17622

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arch/powerpc/mm/pgtable_64.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
unsigned long ioremap_bot = IOREMAP_BASE;
6969

7070
#ifdef CONFIG_PPC_MMU_NOHASH
71-
static void *early_alloc_pgtable(unsigned long size)
71+
static __ref void *early_alloc_pgtable(unsigned long size)
7272
{
7373
void *pt;
7474

0 commit comments

Comments
 (0)