Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

tools/testing/vma: add missing stub

vm_flags_reset() is not available in the userland VMA tests, so add a stub
which const-casts vma->vm_flags and avoids the upcoming removal of the
vma->__vm_flags field.

Link: https://lkml.kernel.org/r/4aff8bf7-d367-4ba3-90ad-13eef7a063fa@lucifer.local
Fixes: c5c67c1de357 ("tools/testing/vma: eliminate dependency on vma->__vm_flags")
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>

authored by

Lorenzo Stoakes and committed by
Andrew Morton
ccf9eb32 04d31610

+7
+7
tools/testing/vma/vma_internal.h
··· 1549 1549 return 0; 1550 1550 } 1551 1551 1552 + static inline void vm_flags_reset(struct vm_area_struct *vma, vm_flags_t flags) 1553 + { 1554 + vm_flags_t *dst = (vm_flags_t *)(&vma->vm_flags); 1555 + 1556 + *dst = flags; 1557 + } 1558 + 1552 1559 #endif /* __MM_VMA_INTERNAL_H */