Skip to content

Commit 7ae9510

Browse files
committed
kselftest/arm64: mte: Use the correct naming for tag check modes in check_hugetlb_options.c
The architecture doesn't define precise/imprecise MTE tag check modes, only synchronous and asynchronous. Use the correct naming and also ensure they match the MTE_{ASYNC,SYNC}_ERR type. Fixes: 27879e8 ("selftests: arm64: add hugetlb mte tests") Cc: Yang Shi <yang@os.amperecomputing.com> Reviewed-by: Yang Shi <yang@os.amperecomputing.com> Link: https://lore.kernel.org/r/20250221093331.2184245-2-catalin.marinas@arm.com Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
1 parent 0ad2507 commit 7ae9510

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tools/testing/selftests/arm64/mte/check_hugetlb_options.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -270,13 +270,13 @@ int main(int argc, char *argv[])
270270
"Check clear PROT_MTE flags with private mapping and sync error mode and mmap/mprotect memory\n");
271271

272272
evaluate_test(check_child_hugetlb_memory_mapping(USE_MMAP, MTE_SYNC_ERR, MAP_PRIVATE | MAP_HUGETLB),
273-
"Check child hugetlb memory with private mapping, precise mode and mmap memory\n");
273+
"Check child hugetlb memory with private mapping, sync error mode and mmap memory\n");
274274
evaluate_test(check_child_hugetlb_memory_mapping(USE_MMAP, MTE_ASYNC_ERR, MAP_PRIVATE | MAP_HUGETLB),
275-
"Check child hugetlb memory with private mapping, precise mode and mmap memory\n");
275+
"Check child hugetlb memory with private mapping, async error mode and mmap memory\n");
276276
evaluate_test(check_child_hugetlb_memory_mapping(USE_MPROTECT, MTE_SYNC_ERR, MAP_PRIVATE | MAP_HUGETLB),
277-
"Check child hugetlb memory with private mapping, precise mode and mmap/mprotect memory\n");
277+
"Check child hugetlb memory with private mapping, sync error mode and mmap/mprotect memory\n");
278278
evaluate_test(check_child_hugetlb_memory_mapping(USE_MPROTECT, MTE_ASYNC_ERR, MAP_PRIVATE | MAP_HUGETLB),
279-
"Check child hugetlb memory with private mapping, precise mode and mmap/mprotect memory\n");
279+
"Check child hugetlb memory with private mapping, async error mode and mmap/mprotect memory\n");
280280

281281
mte_restore_setup();
282282
free_hugetlb();

0 commit comments

Comments
 (0)