Skip to content

Commit 918850c

Browse files
lorenzo-stoakesakpm00
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/[email protected] Fixes: ee40c99 ("mm: fix copy_vma() error handling for hugetlb mappings") Signed-off-by: Lorenzo Stoakes <[email protected]> Reviewed-by: Liam R. Howlett <[email protected]> Reviewed-by: Pedro Falcato <[email protected]> Cc: Jann Horn <[email protected]> Cc: Vlastimil Babka <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 52084f2 commit 918850c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

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)