linux-yocto/tools
Lorenzo Stoakes ab09a7816c tools/testing/selftests: fix gup_longterm for unknown fs
commit 21c68ad1d9771d331198cc73cbf6e908d7915f35 upstream.

Commit 66bce7afba ("selftests/mm: fix test result reporting in
gup_longterm") introduced a small bug causing unknown filesystems to
always result in a test failure.

This is because do_test() was updated to use a common reporting path, but
this case appears to have been missed.

This is problematic for e.g.  virtme-ng which uses an overlayfs file
system, causing gup_longterm to appear to fail each time due to a test
count mismatch:

	# Planned tests != run tests (50 != 46)
	# Totals: pass:24 fail:0 xfail:0 xpass:0 skip:22 error:0

The fix is to simply change the return into a break.

Link: https://lkml.kernel.org/r/20260106154547.214907-1-lorenzo.stoakes@oracle.com
Fixes: 66bce7afba ("selftests/mm: fix test result reporting in gup_longterm")
Signed-off-by: Lorenzo Stoakes <lorenzo.stoakes@oracle.com>
Reviewed-by: David Hildenbrand (Red Hat) <david@kernel.org>
Cc: Jason Gunthorpe <jgg@ziepe.ca>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Liam Howlett <liam.howlett@oracle.com>
Cc: "Liam R. Howlett" <Liam.Howlett@oracle.com>
Cc: Mark Brown <broonie@kernel.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Peter Xu <peterx@redhat.com>
Cc: Shuah Khan <shuah@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Cc: <stable@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2026-01-23 11:21:25 +01:00
..
accounting tools/delaytop: improve error handling for missing PSI support 2025-09-13 17:32:56 -07:00
arch RISC-V updates for v6.18-rc7 2025-11-22 09:44:50 -08:00
bootconfig
bpf bpftool: Allow bpftool to build with openssl < 3 2025-12-18 14:03:16 +01:00
build perf build: Don't fail fast path feature detection when binutils-devel is not available 2025-11-13 17:16:34 -03:00
certs
cgroup
counter
crypto
debugging
docs docs: add tools/docs/gen-redirects.py 2025-09-09 13:37:16 -06:00
firewire
firmware
gpio
hv
iio iio: add power and energy measurement modifiers 2025-09-13 13:47:19 +01:00
include tools/nolibc/dirent: avoid errno in readdir_r 2025-12-18 14:02:43 +01:00
kvm/kvm_stat
laptop
leds
lib libperf cpumap: Fix perf_cpu_map__max for an empty/NULL map 2026-01-02 12:57:02 +01:00
memory-model
mm tools/mm/page_owner_sort: fix timestamp comparison for stable sorting 2026-01-08 10:17:11 +01:00
net tools: ynl: call nested attribute free function for indexed arrays 2025-11-10 17:18:05 -08:00
objtool objtool: Fix weak symbol detection 2025-12-18 14:02:28 +01:00
pcmcia
perf perf stat: Allow no events to open if this is a "--null" run 2025-12-18 14:03:32 +01:00
power tools/power turbostat: Regression fix Uncore MHz printed in hex 2025-12-18 14:02:36 +01:00
rcu
sched
sched_ext tools/sched_ext: fix scx_show_state.py for scx_root change 2026-01-08 10:16:48 +01:00
scripts
sound
spi
testing tools/testing/selftests: fix gup_longterm for unknown fs 2026-01-23 11:21:25 +01:00
thermal
time
tracing rtla/timerlat_bpf: Stop tracing on user latency 2026-01-02 12:57:29 +01:00
usb
verification
virtio kmsan: convert kmsan_handle_dma to use physical addresses 2025-09-12 00:18:20 +02:00
wmi
workqueue
writeback
Makefile