Commit f1aed924 authored by Kumar Gala's avatar Kumar Gala

[POWERPC] Fix modpost warning

Mark pte_alloc_one_kernel as __init_refok to fix the following warning:

WARNING: arch/powerpc/mm/built-in.o(.text+0x1068): Section mismatch: reference to .init.text:early_get_page (between 'pte_alloc_one_kernel' and 'steal_context')
Signed-off-by: default avatarKumar Gala <galak@kernel.crashing.org>
parent 405861a0
...@@ -93,7 +93,7 @@ void pgd_free(pgd_t *pgd) ...@@ -93,7 +93,7 @@ void pgd_free(pgd_t *pgd)
free_pages((unsigned long)pgd, PGDIR_ORDER); free_pages((unsigned long)pgd, PGDIR_ORDER);
} }
pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address) __init_refok pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
{ {
pte_t *pte; pte_t *pte;
extern int mem_init_done; extern int mem_init_done;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment