linux/tools/testing/selftests/mm
Colin Ian King 25b5949c30 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>
2023-07-17 12:53:22 -07:00
..
.gitignore selftests/mm: .gitignore: add mkdirty, va_high_addr_switch 2023-06-19 16:19:02 -07:00
charge_reserved_hugetlb.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
check_config.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
compaction_test.c
config
cow.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
gup_longterm.c selftests/mm: gup_longterm: add liburing tests 2023-06-09 16:25:38 -07:00
gup_test.c selftests/mm: merge util.h into vm_util.h 2023-04-18 16:30:02 -07:00
hmm-tests.c
hugepage-mmap.c
hugepage-mremap.c selftests/mm: uffd_[un]register() 2023-04-18 16:30:05 -07:00
hugepage-shm.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
hugepage-vmemmap.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
hugetlb_reparenting_test.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
hugetlb-madvise.c selftests/mm: fix unused variable warnings in hugetlb-madvise.c, migration.c 2023-06-19 16:19:01 -07:00
khugepaged.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
ksm_functional_tests.c selftests/ksm: ksm_functional_tests: add prctl unmerge test 2023-05-02 17:21:49 -07:00
ksm_tests.c selftests/mm: add new selftests for KSM 2023-04-21 14:52:03 -07:00
madv_populate.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
Makefile Merge mm-hotfixes-stable into mm-stable to pick up depended-upon changes. 2023-06-23 16:58:19 -07:00
map_fixed_noreplace.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
map_hugetlb.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
map_populate.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
mdwe_test.c kselftest: vm: fix unused variable warning 2023-03-23 17:18:33 -07:00
memfd_secret.c
migration.c selftests/mm: fix unused variable warnings in hugetlb-madvise.c, migration.c 2023-06-19 16:19:01 -07:00
mkdirty.c selftests/mm: mkdirty: fix incorrect position of #endif 2023-07-17 12:53:22 -07:00
mlock2-tests.c selftests/mm: fix "warning: expression which evaluates to zero..." in mlock2-tests.c 2023-06-19 16:19:01 -07:00
mlock2.h selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
mlock-random-test.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
mrelease_test.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
mremap_dontunmap.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
mremap_test.c
on-fault-limit.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
pkey-helpers.h
pkey-powerpc.h selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
pkey-x86.h selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
protection_keys.c selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
run_vmtests.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
settings
soft-dirty.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
split_huge_page_test.c selftests/mm: reuse read_pmd_pagesize() in COW selftest 2023-04-18 16:30:00 -07:00
test_hmm.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
test_vmalloc.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
thuge-gen.c selftests/mm: merge default_huge_page_size() into one 2023-04-18 16:30:03 -07:00
transhuge-stress.c selftests/mm: merge util.h into vm_util.h 2023-04-18 16:30:02 -07:00
uffd-common.c selftests/mm: move certain uffd*() routines from vm_util.c to uffd-common.c 2023-06-19 16:19:02 -07:00
uffd-common.h selftests/mm: move certain uffd*() routines from vm_util.c to uffd-common.c 2023-06-19 16:19:02 -07:00
uffd-stress.c selftests/mm: fix uffd-stress unused function warning 2023-06-19 16:19:01 -07:00
uffd-unit-tests.c selftests/mm: fix two -Wformat-security warnings in uffd builds 2023-06-19 16:19:02 -07:00
va_high_addr_switch.c selftests/mm: add platform independent in code comments 2023-04-18 16:53:51 -07:00
va_high_addr_switch.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
virtual_address_range.c selftests/mm: change NR_CHUNKS_HIGH for aarch64 2023-04-05 19:42:59 -07:00
vm_util.c selftests/mm: move certain uffd*() routines from vm_util.c to uffd-common.c 2023-06-19 16:19:02 -07:00
vm_util.h selftests: mm: remove duplicate unneeded defines 2023-06-19 16:19:25 -07:00
write_hugetlb_memory.sh selftests/mm: give scripts execute permission 2023-07-14 09:24:31 -07:00
write_to_hugetlbfs.c