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

Mark Brown broonie at kernel.org
Thu Aug 7 05:04:09 PDT 2025


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 at kernel.org>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://lists.infradead.org/pipermail/linux-arm-kernel/attachments/20250807/a9765b72/attachment.sig>


More information about the linux-arm-kernel mailing list