From: Lorenzo Stoakes Date: Wed, 28 May 2025 14:15:39 +0000 (+0100) Subject: tools/testing/vma: add missing function stub X-Git-Tag: v6.16-rc1~73^2~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=918850c13608c7b138512c2ecbfd3436b7a51797;p=thirdparty%2Flinux.git tools/testing/vma: add missing function stub The hugetlb fix introduced in commit ee40c9920ac2 ("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: ee40c9920ac2 ("mm: fix copy_vma() error handling for hugetlb mappings") Signed-off-by: Lorenzo Stoakes Reviewed-by: Liam R. Howlett Reviewed-by: Pedro Falcato Cc: Jann Horn Cc: Vlastimil Babka Signed-off-by: Andrew Morton --- diff --git a/tools/testing/vma/vma_internal.h b/tools/testing/vma/vma_internal.h index f6e45e62da3a6..441feb21aa5a9 100644 --- a/tools/testing/vma/vma_internal.h +++ b/tools/testing/vma/vma_internal.h @@ -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 */