[SPARC64]: Kill useless __pte_alloc_one_kernel indirection
warning: untested, but it there's not too much chance for screwups Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
bfd4bda097
commit
8edf72ebce
@@ -278,7 +278,7 @@ EXPORT_SYMBOL(verify_compat_iovec);
|
|||||||
|
|
||||||
EXPORT_SYMBOL(dump_thread);
|
EXPORT_SYMBOL(dump_thread);
|
||||||
EXPORT_SYMBOL(dump_fpu);
|
EXPORT_SYMBOL(dump_fpu);
|
||||||
EXPORT_SYMBOL(__pte_alloc_one_kernel);
|
EXPORT_SYMBOL(pte_alloc_one_kernel);
|
||||||
#ifndef CONFIG_SMP
|
#ifndef CONFIG_SMP
|
||||||
EXPORT_SYMBOL(pgt_quicklists);
|
EXPORT_SYMBOL(pgt_quicklists);
|
||||||
#endif
|
#endif
|
||||||
|
@@ -1114,7 +1114,7 @@ struct pgtable_cache_struct pgt_quicklists;
|
|||||||
#else
|
#else
|
||||||
#define DC_ALIAS_SHIFT 0
|
#define DC_ALIAS_SHIFT 0
|
||||||
#endif
|
#endif
|
||||||
pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
|
pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
|
||||||
{
|
{
|
||||||
struct page *page;
|
struct page *page;
|
||||||
unsigned long color;
|
unsigned long color;
|
||||||
|
@@ -122,17 +122,12 @@ static __inline__ void free_pmd_slow(pmd_t *pmd)
|
|||||||
#define pmd_populate(MM,PMD,PTE_PAGE) \
|
#define pmd_populate(MM,PMD,PTE_PAGE) \
|
||||||
pmd_populate_kernel(MM,PMD,page_address(PTE_PAGE))
|
pmd_populate_kernel(MM,PMD,page_address(PTE_PAGE))
|
||||||
|
|
||||||
extern pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);
|
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);
|
||||||
|
|
||||||
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
|
|
||||||
{
|
|
||||||
return __pte_alloc_one_kernel(mm, address);
|
|
||||||
}
|
|
||||||
|
|
||||||
static inline struct page *
|
static inline struct page *
|
||||||
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
|
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
|
||||||
{
|
{
|
||||||
pte_t *pte = __pte_alloc_one_kernel(mm, addr);
|
pte_t *pte = pte_alloc_one_kernel(mm, addr);
|
||||||
|
|
||||||
if (pte)
|
if (pte)
|
||||||
return virt_to_page(pte);
|
return virt_to_page(pte);
|
||||||
|
Reference in New Issue
Block a user