linux-kselftest.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] selftests: arm64: Fix -Waddress warning in tpidr2 test
@ 2025-08-06 20:39 Bala-Vignesh-Reddy
  2025-08-07  5:02 ` Anshuman Khandual
  2025-08-07 12:04 ` [PATCH] " Mark Brown
  0 siblings, 2 replies; 8+ messages in thread
From: Bala-Vignesh-Reddy @ 2025-08-06 20:39 UTC (permalink / raw)
  To: linux-arm-kernel, linux-kselftest, linux-kernel
  Cc: Bala-Vignesh-Reddy, Catalin Marinas, Will Deacon, Shuah Khan,
	Mark Brown, Yeoreum Yun

Resolve compiler warning about always true condition in ksft_test_result
in tpidr2, passing actual function.

This silences -Waddress warning while maintaining test functionality.

Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
---
 tools/testing/selftests/arm64/abi/tpidr2.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/testing/selftests/arm64/abi/tpidr2.c b/tools/testing/selftests/arm64/abi/tpidr2.c
index f58a9f89b952..4c89ab0f1010 100644
--- a/tools/testing/selftests/arm64/abi/tpidr2.c
+++ b/tools/testing/selftests/arm64/abi/tpidr2.c
@@ -227,10 +227,10 @@ int main(int argc, char **argv)
 	ret = open("/proc/sys/abi/sme_default_vector_length", O_RDONLY, 0);
 	if (ret >= 0) {
 		ksft_test_result(default_value(), "default_value\n");
-		ksft_test_result(write_read, "write_read\n");
-		ksft_test_result(write_sleep_read, "write_sleep_read\n");
-		ksft_test_result(write_fork_read, "write_fork_read\n");
-		ksft_test_result(write_clone_read, "write_clone_read\n");
+		ksft_test_result(write_read(), "write_read\n");
+		ksft_test_result(write_sleep_read(), "write_sleep_read\n");
+		ksft_test_result(write_fork_read(), "write_fork_read\n");
+		ksft_test_result(write_clone_read(), "write_clone_read\n");
 
 	} else {
 		ksft_print_msg("SME support not present\n");
-- 
2.43.0


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2025-09-08 15:55 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-08-06 20:39 [PATCH] selftests: arm64: Fix -Waddress warning in tpidr2 test Bala-Vignesh-Reddy
2025-08-07  5:02 ` Anshuman Khandual
2025-08-07 11:42   ` Bala-Vignesh-Reddy
2025-08-07 11:42     ` [PATCH v2] selftests: arm64: Fix -Waddress warning in tpidr2 test Bala-Vignesh-Reddy
2025-08-07 12:07       ` Mark Brown
2025-08-14  5:47       ` Anshuman Khandual
2025-09-08 15:55       ` Will Deacon
2025-08-07 12:04 ` [PATCH] " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).