[PATCH v2 09/13] selftests/mm: skip uffd-wp-mremap if UFFD write-protect is unsupported
Andrew Morton
akpm at linux-foundation.org
Wed Mar 25 10:56:06 AEDT 2026
On Fri, 13 Mar 2026 19:56:01 +0530 Sayali Patil <sayalip at linux.ibm.com> wrote:
> >
> > Because right now it reads as if it would be returning a bool.
> >
> > Acked-by: David Hildenbrand (Arm) <david at kernel.org>
> >
> Thanks for the review. I'll rename it to
> "check_uffd_wp_feature_supported()" in the next version.
There was no next version. I added this:
--- a/tools/testing/selftests/mm/uffd-wp-mremap.c~selftests-mm-skip-uffd-wp-mremap-if-uffd-write-protect-is-unsupported-fix
+++ a/tools/testing/selftests/mm/uffd-wp-mremap.c
@@ -19,7 +19,7 @@ static size_t thpsizes[20];
static int nr_hugetlbsizes;
static size_t hugetlbsizes[10];
-static void uffd_wp_feature_supported(void)
+static void check_uffd_wp_feature_supported(void)
{
uint64_t features;
@@ -347,7 +347,7 @@ int main(int argc, char **argv)
struct thp_settings settings;
int i, j, plan = 0;
- uffd_wp_feature_supported();
+ check_uffd_wp_feature_supported();
pagesize = getpagesize();
nr_thpsizes = detect_thp_sizes(thpsizes, ARRAY_SIZE(thpsizes));
_
More information about the Linuxppc-dev
mailing list