selftests/mm: mkdirty: Fix incorrect position of #endif
Subsystems (4)
PATCH 1/1 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 }
Fixes 9eac40fc0cc7 ("selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions")
Signed-off-by Colin Ian King <[email protected]>
--- tools/testing/selftests/mm/mkdirty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
tools/testing/selftests/mm/mkdirty.c +1 -1
@@ -321,8 +321,8 @@ static void test_uffdio_copy(void) munmap:munmap (dst, pagesize); free(src); -#endif /* __NR_userfaultfd */ } +#endif /* __NR_userfaultfd */ int main (void ) {
Signature · 1 line
2.39.2
Quoted 15 lines · Colin Ian King
The #endif is the wrong side of a } causing a build failure when
__NR_userfaultfdis not defined. Fix this by moving the #end to enclose the }Fixes 9eac40fc0cc7 ("selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions")Signed-off-by Colin Ian King <[email protected]>--- tools/testing/selftests/mm/mkdirty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)tools/testing/selftests/mm/mkdirty.c +0
-0
tools/testing/selftests/mm/mkdirty.c static void test_uffdio_copy(void) · line 328
Quoted 9 lines
tools/testing/selftests/mm/mkdirty.c +1
-1@@ -321,8 +321,8 @@ static void test_uffdio_copy(void) munmap:munmap (dst, pagesize); free(src); -#endif /* __NR_userfaultfd */ } +#endif /* __NR_userfaultfd */ int main (void ) {
Ouch, thanks!
Reviewed-by David Hildenbrand <[email protected]>
Signature · 3 lines
Cheers, David / dhildenb