Hello,
This commit is the second backport of the upstream commit 18d609da ("selftest/vm: verify remap destination address in mremap_test"). It re-introduces function is_remap_region_valid and breaks vm selftest target build with the following diagnostics:
mremap_test.c:126:13: error: redefinition of ‘is_remap_region_valid’
The original backport to 5.15 was done as commit 2688d967. This one (0b4e1609) should be reverted.
The same happend with the upstream commit 9c85a9ba ("selftest/vm: verify mmap addr in mremap_test"). Original backport: a17404fc, repeated backport with just the new function added: e8b99895. Build error message:
mremap_test.c:147:27: error: redefinition of ‘get_mmap_min_addr’
Thank you