]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
tools/testing/vma: add missing stub
authorLorenzo Stoakes <lorenzo.stoakes@oracle.com>
Fri, 21 Nov 2025 17:25:18 +0000 (17:25 +0000)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 24 Nov 2025 23:08:55 +0000 (15:08 -0800)
commitccf9eb326b4aabcd61e71d87469cafd6c5f01308
treef35eed4dc4fe3a7009534dc0e168143ef4a91326
parent04d31610a7221cca624646241b1f6b3edd6c99fd
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>
tools/testing/vma/vma_internal.h