]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: arm64: Fix -Waddress warning in tpidr2 test
authorBala-Vignesh-Reddy <reddybalavignesh9979@gmail.com>
Thu, 7 Aug 2025 11:42:29 +0000 (17:12 +0530)
committerWill Deacon <will@kernel.org>
Mon, 8 Sep 2025 14:24:19 +0000 (15:24 +0100)
commit50af02425afc72b1b47c4a0a0b9c9bdaa1a1b347
tree92814d484453219d3226fe48d54890024d9bdbc5
parent791d703baddd141dc7b80a69bcd237b6b79150ea
selftests: arm64: Fix -Waddress warning in tpidr2 test

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: 6d80cb73131d ("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>
tools/testing/selftests/arm64/abi/tpidr2.c