Skip to content

Commit 918850c

Browse files
ljskernelakpm00
authored andcommitted
tools/testing/vma: add missing function stub
The hugetlb fix introduced in commit ee40c99 ("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: ee40c99 ("mm: fix copy_vma() error handling for hugetlb mappings") Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com> Reviewed-by: Liam R. Howlett <Liam.Howlett@oracle.com> Reviewed-by: Pedro Falcato <pfalcato@suse.de> Cc: Jann Horn <jannh@google.com> Cc: Vlastimil Babka <vbabka@suse.cz> Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
1 parent 52084f2 commit 918850c

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

tools/testing/vma/vma_internal.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1461,4 +1461,9 @@ static inline int __call_mmap_prepare(struct file *file,
14611461
return file->f_op->mmap_prepare(desc);
14621462
}
14631463

1464+
static inline void fixup_hugetlb_reservations(struct vm_area_struct *vma)
1465+
{
1466+
(void)vma;
1467+
}
1468+
14641469
#endif /* __MM_VMA_INTERNAL_H */

0 commit comments

Comments
 (0)