Files
ack-tegra/include/linux
Marco Elver e4588c25c9 compiler-context-analysis: Remove __cond_lock() function-like helper
As discussed in [1], removing __cond_lock() will improve the readability
of trylock code. Now that Sparse context tracking support has been
removed, we can also remove __cond_lock().

Change existing APIs to either drop __cond_lock() completely, or make
use of the __cond_acquires() function attribute instead.

In particular, spinlock and rwlock implementations required switching
over to inline helpers rather than statement-expressions for their
trylock_* variants.

Suggested-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Marco Elver <elver@google.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/all/20250207082832.GU7145@noisy.programming.kicks-ass.net/ [1]
Link: https://patch.msgid.link/20251219154418.3592607-25-elver@google.com
2026-01-05 16:43:33 +01:00
..
…
…
…
…
2025-10-22 07:54:33 +02:00
…
…
…
…
…
…
…
…
…
…
…
2025-11-11 10:01:30 +01:00
…
2025-11-18 22:26:02 +05:30
…
…
…
2025-10-13 11:27:52 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-04 07:19:26 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-21 11:21:31 +01:00
2025-10-27 09:56:27 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-04 12:36:57 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-22 07:55:00 +02:00
…
…
2025-11-01 12:44:49 -05:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-12-13 20:04:32 +12:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-29 18:28:29 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-04 12:36:02 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-22 07:53:15 +02:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-05 16:43:31 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-23 12:30:40 +01:00
…
…
…
…
…
…
…
2025-11-20 13:43:59 -08:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-04 19:10:33 -08:00
…
…
…
…
…
…
…
…
…
…
…
2025-11-05 23:58:20 +01:00
2025-11-03 17:41:17 +01:00
2025-11-11 10:01:30 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-10-30 18:35:26 +01:00
2025-10-24 21:39:27 +02:00
…
…
…
…
…
2025-10-31 10:16:23 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-27 14:24:30 -08:00
…
…
…
…
…
…
…
…
2025-11-18 17:52:54 +01:00
…
…
…
…
…
…
…
…
…
…
…
2025-11-11 13:18:56 +01:00
…
2025-11-28 09:21:18 -07:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2026-01-05 16:43:30 +01:00
…
…
…
…
…
…
2025-11-20 17:57:40 -08:00
…
…
…
…
…
…
…
…
2025-11-03 17:41:18 +01:00
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
…
2025-11-03 19:27:41 -08:00
…
2025-11-25 10:07:42 +01:00
…
…
…
…
…
…
…
…
…
…
…
2025-11-03 17:41:18 +01:00
…
…
…
…
…
…
…
…
…
2025-11-24 15:08:54 -08:00
…
…
…
…
…
…
…
…
…
2025-11-12 09:38:34 +01:00
…
…
…
…
…
…
…
…