selftests/mm: mkdirty: fix incorrect position of #endif
authorColin Ian King <colin.i.king@gmail.com>
Wed, 12 Jul 2023 13:46:48 +0000 (14:46 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Mon, 17 Jul 2023 19:53:22 +0000 (12:53 -0700)
commit25b5949c30938c7f26dbadc948b491e0e0811c78
treee16400835da8bf44e689f5d39808ae0b8da4771a
parent3c769fd88b9742954763a968e84de09f7ad78cfe
selftests/mm: mkdirty: fix incorrect position of #endif

The #endif is the wrong side of a } causing a build failure when
__NR_userfaultfd is not defined.  Fix this by moving the #end to enclose
the }

Link: https://lkml.kernel.org/r/20230712134648.456349-1-colin.i.king@gmail.com
Fixes: 9eac40fc0cc7 ("selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions")
Signed-off-by: Colin Ian King <colin.i.king@gmail.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
tools/testing/selftests/mm/mkdirty.c