Skip to content

Commit c0f53f0

Browse files
committed
Merge tag 'linux_kselftest-next-6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest
Pull kselftest updates from Shuah Khan: - Fix watchdog test to exit when device doesn't support keep-alive - Fix missing header build complaints during out of tree build - A few minor fixes to git ignore - MAINTAINERS file change to update dma_map_benchmark * tag 'linux_kselftest-next-6.18-rc1' of git://git.kernel.org/pub/scm/linux/kernel/git/shuah/linux-kselftest: MAINTAINERS: add myself and Barry to dma_map_benchmark maintainers selftests/kexec: Ignore selftest binary selftests: always install UAPI headers to the correct directory selftests/kselftest_harness: Add harness-selftest.expected to TEST_FILES selftests: watchdog: skip ping loop if WDIOF_KEEPALIVEPING not supported
2 parents 30bbcb4 + 1969201 commit c0f53f0

File tree

5 files changed

+16
-3
lines changed

5 files changed

+16
-3
lines changed

MAINTAINERS

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7261,10 +7261,11 @@ F: include/linux/dmaengine.h
72617261
F: include/linux/of_dma.h
72627262

72637263
DMA MAPPING BENCHMARK
7264-
M: Xiang Chen <chenxiang66@hisilicon.com>
7264+
M: Barry Song <baohua@kernel.org>
7265+
M: Qinxin Xia <xiaqinxin@huawei.com>
72657266
L: iommu@lists.linux.dev
72667267
F: kernel/dma/map_benchmark.c
7267-
F: tools/testing/selftests/dma/
7268+
F: tools/dma/
72687269

72697270
DMA MAPPING HELPERS
72707271
M: Marek Szyprowski <m.szyprowski@samsung.com>
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# SPDX-License-Identifier: GPL-2.0-only
2+
test_kexec_jump

tools/testing/selftests/kselftest_harness/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
TEST_GEN_PROGS_EXTENDED := harness-selftest
44
TEST_PROGS := harness-selftest.sh
5+
TEST_FILES := harness-selftest.expected
56
EXTRA_CLEAN := harness-selftest.seen
67

78
include ../lib.mk

tools/testing/selftests/lib.mk

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,10 @@ $(OUTPUT)/%:%.S
228228
$(LINK.S) $^ $(LDLIBS) -o $@
229229
endif
230230

231+
# Extract the expected header directory
232+
khdr_output := $(patsubst %/usr/include,%,$(filter %/usr/include,$(KHDR_INCLUDES)))
233+
231234
headers:
232-
$(Q)$(MAKE) -C $(top_srcdir) headers
235+
$(Q)$(MAKE) -f $(top_srcdir)/Makefile -C $(khdr_output) headers
233236

234237
.PHONY: run_tests all clean install emit_tests gen_mods_dir clean_mods_dir headers

tools/testing/selftests/watchdog/watchdog-test.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,12 @@ int main(int argc, char *argv[])
332332
if (oneshot)
333333
goto end;
334334

335+
/* Check if WDIOF_KEEPALIVEPING is supported */
336+
if (!(info.options & WDIOF_KEEPALIVEPING)) {
337+
printf("WDIOC_KEEPALIVE not supported by this device\n");
338+
goto end;
339+
}
340+
335341
printf("Watchdog Ticking Away!\n");
336342

337343
/*

0 commit comments

Comments
 (0)