diff mbox series

kselftest: arm64: Fix exit code of sve-ptrace

Message ID 20210309190304.39169-1-broonie@kernel.org
State Accepted
Commit 07e644885bf6727a48db109fad053cb43f3c9859
Headers show
Series kselftest: arm64: Fix exit code of sve-ptrace | expand

Commit Message

Mark Brown March 9, 2021, 7:03 p.m. UTC
We track if sve-ptrace encountered a failure in a variable but don't
actually use that value when we exit the program, do so.

Signed-off-by: Mark Brown <broonie@kernel.org>

---
 tools/testing/selftests/arm64/fp/sve-ptrace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.20.1

Comments

Will Deacon March 10, 2021, 11:39 a.m. UTC | #1
On Tue, 9 Mar 2021 19:03:04 +0000, Mark Brown wrote:
> We track if sve-ptrace encountered a failure in a variable but don't

> actually use that value when we exit the program, do so.


Applied to arm64 (for-next/fixes), thanks!

[1/1] kselftest: arm64: Fix exit code of sve-ptrace
      https://git.kernel.org/arm64/c/07e644885bf6

Cheers,
-- 
Will

https://fixes.arm64.dev
https://next.arm64.dev
https://will.arm64.dev
diff mbox series

Patch

diff --git a/tools/testing/selftests/arm64/fp/sve-ptrace.c b/tools/testing/selftests/arm64/fp/sve-ptrace.c
index b2282be6f938..612d3899614a 100644
--- a/tools/testing/selftests/arm64/fp/sve-ptrace.c
+++ b/tools/testing/selftests/arm64/fp/sve-ptrace.c
@@ -332,5 +332,5 @@  int main(void)
 
 	ksft_print_cnts();
 
-	return 0;
+	return ret;
 }