diff options
| author | Ingo Molnar <mingo@kernel.org> | 2025-05-15 14:46:31 +0200 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2025-06-13 10:20:52 +0200 |
| commit | 3bc3c9c3ab6df45a3a3389f74000f8bec1bc96e3 (patch) | |
| tree | 11cbfed33e5aff5aa229890ddeae0d94a21a9689 /kernel/locking/rtmutex_api.c | |
| parent | aec58b48517c911fbdf2beebba46a347e5910072 (diff) | |
bugs/core: Pass down the condition string of WARN_ON_ONCE(cond) warnings to __WARN_FLAGS()
Doing this will allow architecture code to store and print out
this information as part of the WARN_ON and BUG_ON facilities.
The format of the string is '[condition]', for example:
WARN_ON_ONCE(idx < 0 && ptr);
Will get the '[idx < 0 && ptr]' string literal passed down as 'cond_str'
in __WARN_FLAGS().
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: linux-arch@vger.kernel.org
Link: https://lore.kernel.org/r/20250515124644.2958810-3-mingo@kernel.org
Diffstat (limited to 'kernel/locking/rtmutex_api.c')
0 files changed, 0 insertions, 0 deletions
