microblaze: Quiet section mismatch warnings for MMU version
Remove section mismatch - based on ppc aproach. WARNING: vmlinux.o(.text+0x64834): Section mismatch in reference from the function __pte_alloc_kernel() to the function .init.text:early_get_page() The function __pte_alloc_kernel() references the function __init early_get_page(). This is often because __pte_alloc_kernel lacks a __init annotation or the annotation of early_get_page is wrong. Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
7a0248e819
commit
63f1032b97
2 changed files with 16 additions and 15 deletions
|
@ -108,21 +108,7 @@ extern inline void free_pgd_slow(pgd_t *pgd)
|
||||||
#define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); })
|
#define pmd_alloc_one_fast(mm, address) ({ BUG(); ((pmd_t *)1); })
|
||||||
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
|
#define pmd_alloc_one(mm, address) ({ BUG(); ((pmd_t *)2); })
|
||||||
|
|
||||||
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
|
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long addr);
|
||||||
unsigned long address)
|
|
||||||
{
|
|
||||||
pte_t *pte;
|
|
||||||
extern void *early_get_page(void);
|
|
||||||
if (mem_init_done) {
|
|
||||||
pte = (pte_t *)__get_free_page(GFP_KERNEL |
|
|
||||||
__GFP_REPEAT | __GFP_ZERO);
|
|
||||||
} else {
|
|
||||||
pte = (pte_t *)early_get_page();
|
|
||||||
if (pte)
|
|
||||||
clear_page(pte);
|
|
||||||
}
|
|
||||||
return pte;
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct page *pte_alloc_one(struct mm_struct *mm,
|
static inline struct page *pte_alloc_one(struct mm_struct *mm,
|
||||||
unsigned long address)
|
unsigned long address)
|
||||||
|
|
|
@ -274,3 +274,18 @@ unsigned long iopa(unsigned long addr)
|
||||||
|
|
||||||
return pa;
|
return pa;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
__init_refok pte_t *pte_alloc_one_kernel(struct mm_struct *mm,
|
||||||
|
unsigned long address)
|
||||||
|
{
|
||||||
|
pte_t *pte;
|
||||||
|
if (mem_init_done) {
|
||||||
|
pte = (pte_t *)__get_free_page(GFP_KERNEL |
|
||||||
|
__GFP_REPEAT | __GFP_ZERO);
|
||||||
|
} else {
|
||||||
|
pte = (pte_t *)early_get_page();
|
||||||
|
if (pte)
|
||||||
|
clear_page(pte);
|
||||||
|
}
|
||||||
|
return pte;
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue