Skip to content

Commit 25b5949

Browse files
ColinIanKingakpm00
authored andcommitted
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/[email protected] Fixes: 9eac40f ("selftests/mm: mkdirty: test behavior of (pte|pmd)_mkdirty on VMAs without write permissions") Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: David Hildenbrand <[email protected]> Cc: Shuah Khan <[email protected]> Cc: <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent 3c769fd commit 25b5949

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/testing/selftests/mm/mkdirty.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,8 @@ static void test_uffdio_copy(void)
321321
munmap:
322322
munmap(dst, pagesize);
323323
free(src);
324-
#endif /* __NR_userfaultfd */
325324
}
325+
#endif /* __NR_userfaultfd */
326326

327327
int main(void)
328328
{

0 commit comments

Comments
 (0)