提交 df841cd7 编写于 作者: M Mark Brown 提交者: Zheng Zengkai

kselftest/arm64: mte: Fix misleading output when skipping tests

stable inclusion
from stable-5.10.67
commit 9486d7ac9f30fb412ece53cbf59e13e1a6636ab0
bugzilla: 182619 https://gitee.com/openeuler/kernel/issues/I4EWO7

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=9486d7ac9f30fb412ece53cbf59e13e1a6636ab0

--------------------------------

[ Upstream commit 83e5dcbe ]

When skipping the tests due to a lack of system support for MTE we
currently print a message saying FAIL which makes it look like the test
failed even though the test did actually report KSFT_SKIP, creating some
confusion. Change the error message to say SKIP instead so things are
clearer.
Signed-off-by: NMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210819172902.56211-1-broonie@kernel.orgSigned-off-by: NCatalin Marinas <catalin.marinas@arm.com>
Signed-off-by: NSasha Levin <sashal@kernel.org>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Acked-by: NWeilong Chen <chenweilong@huawei.com>
Signed-off-by: NChen Jun <chenjun102@huawei.com>
Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
上级 80bc40f1
...@@ -285,7 +285,7 @@ int mte_default_setup(void) ...@@ -285,7 +285,7 @@ int mte_default_setup(void)
int ret; int ret;
if (!(hwcaps2 & HWCAP2_MTE)) { if (!(hwcaps2 & HWCAP2_MTE)) {
ksft_print_msg("FAIL: MTE features unavailable\n"); ksft_print_msg("SKIP: MTE features unavailable\n");
return KSFT_SKIP; return KSFT_SKIP;
} }
/* Get current mte mode */ /* Get current mte mode */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册