提交 915d8aac 编写于 作者: T Thomas Bogendoerfer

MIPS: mm: Remove unused is_aligned_hugepage_range

Function is_aligned_hugepage_range is no longer needed.
Signed-off-by: NThomas Bogendoerfer <tsbogend@alpha.franken.de>
上级 cbab54d9
......@@ -58,18 +58,6 @@ pte_t *huge_pte_offset(struct mm_struct *mm, unsigned long addr,
return (pte_t *) pmd;
}
/*
* This function checks for proper alignment of input addr and len parameters.
*/
int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
{
if (len & ~HPAGE_MASK)
return -EINVAL;
if (addr & ~HPAGE_MASK)
return -EINVAL;
return 0;
}
int pmd_huge(pmd_t pmd)
{
return (pmd_val(pmd) & _PAGE_HUGE) != 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册