mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-27 12:57:53 +00:00
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: 9eac40fc0c
("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>
This commit is contained in:
parent
3c769fd88b
commit
25b5949c30
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue