/* This function checks for proper alignment of input addr and len parameters.  */
int is_aligned_hugepage_range(unsigned long addr, unsigned long len)
/* 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;
}