Re: [PATCH] selftests: arm64: Fix -Waddress warning in tpidr2 test

Mark Brown
2025-08-07T12:14:25Z

[-- Attachment #1: Type: text/plain, Size: 539 bytes --]

On Thu, Aug 07, 2025 at 02:09:26AM +0530, Bala-Vignesh-Reddy wrote:
> Resolve compiler warning about always true condition in ksft_test_result
> in tpidr2, passing actual function.
>
> This silences -Waddress warning while maintaining test functionality.

Ouch, good spot. Annoyingly the compiler I was using didn't complain
about this at all. Like Anshuman said it's good practice to include the
warning, and also often the compiler details unless it's a super common
warning.

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 488 bytes --]