Thread (8 messages) 8 messages, 4 authors, 2025-09-08

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

From: Mark Brown <broonie@kernel.org>
Date: 2025-08-07 12:04:13
Also in: linux-kselftest, lkml

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>

Attachments

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help