Commit 918850c1 authored by Lorenzo Stoakes's avatar Lorenzo Stoakes Committed by Andrew Morton
Browse files

tools/testing/vma: add missing function stub

The hugetlb fix introduced in commit ee40c992 ("mm: fix copy_vma()
error handling for hugetlb mappings") mistakenly did not provide a stub
for the VMA userland testing, which results in a compile error when trying
to build this.

Provide this stub to resolve the issue.

Link: https://lkml.kernel.org/r/20250528-fix-vma-test-v1-1-c8a5f533b38f@oracle.com


Fixes: ee40c992 ("mm: fix copy_vma() error handling for hugetlb mappings")
Signed-off-by: default avatarLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: default avatarLiam R. Howlett <Liam.Howlett@oracle.com>
Reviewed-by: default avatarPedro Falcato <pfalcato@suse.de>
Cc: Jann Horn <jannh@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
parent 52084f25
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -1461,4 +1461,9 @@ static inline int __call_mmap_prepare(struct file *file,
	return file->f_op->mmap_prepare(desc);
}

static inline void fixup_hugetlb_reservations(struct vm_area_struct *vma)
{
	(void)vma;
}

#endif	/* __MM_VMA_INTERNAL_H */