Skip to content

Commit 8262b85

Browse files
Bala-Vignesh-Reddygregkh
authored andcommitted
selftests: arm64: Fix -Waddress warning in tpidr2 test
[ Upstream commit 50af024 ] Thanks to -Waddress, the compiler warns that the ksft_test_result() invocations in the arm64 tpidr2 selftest are always true. Oops. Fix the test by, err, actually running the test functions. Fixes: 6d80cb7 ("kselftest/arm64: Convert tpidr2 test to use kselftest.h") Signed-off-by: Bala-Vignesh-Reddy <reddybalavignesh9979@gmail.com> Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com> Reviewed-by: Mark Brown <broonie@kernel.org> Signed-off-by: Will Deacon <will@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 281a6ef commit 8262b85

File tree

1 file changed

+4
-4
lines changed
  • tools/testing/selftests/arm64/abi

1 file changed

+4
-4
lines changed

tools/testing/selftests/arm64/abi/tpidr2.c

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -227,10 +227,10 @@ int main(int argc, char **argv)
227227
ret = open("/proc/sys/abi/sme_default_vector_length", O_RDONLY, 0);
228228
if (ret >= 0) {
229229
ksft_test_result(default_value(), "default_value\n");
230-
ksft_test_result(write_read, "write_read\n");
231-
ksft_test_result(write_sleep_read, "write_sleep_read\n");
232-
ksft_test_result(write_fork_read, "write_fork_read\n");
233-
ksft_test_result(write_clone_read, "write_clone_read\n");
230+
ksft_test_result(write_read(), "write_read\n");
231+
ksft_test_result(write_sleep_read(), "write_sleep_read\n");
232+
ksft_test_result(write_fork_read(), "write_fork_read\n");
233+
ksft_test_result(write_clone_read(), "write_clone_read\n");
234234

235235
} else {
236236
ksft_print_msg("SME support not present\n");

0 commit comments

Comments
 (0)