Commit f254f390 authored by Jeremy Fitzhardinge's avatar Jeremy Fitzhardinge Committed by Ingo Molnar

x86: un-__init fill_pud/pmd/pte

They are used by __set_fixmap->set_pte_vaddr_pud, which can
be used by arch_setup_additional_pages(), and so is used
after init.
Signed-off-by: default avatarJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 4e830475
...@@ -168,7 +168,7 @@ static __ref void *spp_getpage(void) ...@@ -168,7 +168,7 @@ static __ref void *spp_getpage(void)
return ptr; return ptr;
} }
static pud_t * __init fill_pud(pgd_t *pgd, unsigned long vaddr) static pud_t *fill_pud(pgd_t *pgd, unsigned long vaddr)
{ {
if (pgd_none(*pgd)) { if (pgd_none(*pgd)) {
pud_t *pud = (pud_t *)spp_getpage(); pud_t *pud = (pud_t *)spp_getpage();
...@@ -180,7 +180,7 @@ static pud_t * __init fill_pud(pgd_t *pgd, unsigned long vaddr) ...@@ -180,7 +180,7 @@ static pud_t * __init fill_pud(pgd_t *pgd, unsigned long vaddr)
return pud_offset(pgd, vaddr); return pud_offset(pgd, vaddr);
} }
static pmd_t * __init fill_pmd(pud_t *pud, unsigned long vaddr) static pmd_t *fill_pmd(pud_t *pud, unsigned long vaddr)
{ {
if (pud_none(*pud)) { if (pud_none(*pud)) {
pmd_t *pmd = (pmd_t *) spp_getpage(); pmd_t *pmd = (pmd_t *) spp_getpage();
...@@ -192,7 +192,7 @@ static pmd_t * __init fill_pmd(pud_t *pud, unsigned long vaddr) ...@@ -192,7 +192,7 @@ static pmd_t * __init fill_pmd(pud_t *pud, unsigned long vaddr)
return pmd_offset(pud, vaddr); return pmd_offset(pud, vaddr);
} }
static pte_t * __init fill_pte(pmd_t *pmd, unsigned long vaddr) static pte_t *fill_pte(pmd_t *pmd, unsigned long vaddr)
{ {
if (pmd_none(*pmd)) { if (pmd_none(*pmd)) {
pte_t *pte = (pte_t *) spp_getpage(); pte_t *pte = (pte_t *) spp_getpage();
......
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