Skip to content

Commit 8edf72e

Browse files
Christoph Hellwigdavem330
authored andcommitted
[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>
1 parent bfd4bda commit 8edf72e

3 files changed

Lines changed: 4 additions & 9 deletions

File tree

‎arch/sparc64/kernel/sparc64_ksyms.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -278,7 +278,7 @@ EXPORT_SYMBOL(verify_compat_iovec);
278278

279279
EXPORT_SYMBOL(dump_thread);
280280
EXPORT_SYMBOL(dump_fpu);
281-
EXPORT_SYMBOL(__pte_alloc_one_kernel);
281+
EXPORT_SYMBOL(pte_alloc_one_kernel);
282282
#ifndef CONFIG_SMP
283283
EXPORT_SYMBOL(pgt_quicklists);
284284
#endif

‎arch/sparc64/mm/init.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1114,7 +1114,7 @@ struct pgtable_cache_struct pgt_quicklists;
11141114
#else
11151115
#define DC_ALIAS_SHIFT 0
11161116
#endif
1117-
pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
1117+
pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
11181118
{
11191119
struct page *page;
11201120
unsigned long color;

‎include/asm-sparc64/pgalloc.h‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,17 +122,12 @@ static __inline__ void free_pmd_slow(pmd_t *pmd)
122122
#define pmd_populate(MM,PMD,PTE_PAGE) \
123123
pmd_populate_kernel(MM,PMD,page_address(PTE_PAGE))
124124

125-
extern pte_t *__pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);
126-
127-
static inline pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address)
128-
{
129-
return __pte_alloc_one_kernel(mm, address);
130-
}
125+
extern pte_t *pte_alloc_one_kernel(struct mm_struct *mm, unsigned long address);
131126

132127
static inline struct page *
133128
pte_alloc_one(struct mm_struct *mm, unsigned long addr)
134129
{
135-
pte_t *pte = __pte_alloc_one_kernel(mm, addr);
130+
pte_t *pte = pte_alloc_one_kernel(mm, addr);
136131

137132
if (pte)
138133
return virt_to_page(pte);

0 commit comments

Comments
 (0)