Re: [RFC][PATCH 0/4] locking: Add/convert context analysis bits
From: Bart Van Assche
Date: Wed Jan 21 2026 - 15:49:40 EST
On 1/21/26 11:23 AM, Peter Zijlstra wrote:
Pushed out an updated/fixed series to:
git://git.kernel.org/pub/scm/linux/kernel/git/peterz/queue.git locking/core
With CONFIG_WARN_CONTEXT_ANALYSIS=y, CONFIG_WARN_CONTEXT_ANALYSIS_ALL=n
and "+src:*include/*=emit" in scripts/context-analysis-suppression.txt
I see the following error messages for that tree:
In file included from kernel/locking/mutex.c:22:
In file included from ./include/linux/ww_mutex.h:21:
./include/linux/rtmutex.h:44:25: error: reading variable 'owner' requires holding raw_spinlock '&rt_mutex_base::wait_lock' [-Werror,-Wthread-safety-analysis]
44 | return READ_ONCE(lock->owner) != NULL;
| ^
./include/linux/rtmutex.h:52:56: error: reading variable 'owner' requires holding raw_spinlock '&rt_mutex_base::wait_lock' [-Werror,-Wthread-safety-analysis]
52 | unsigned long owner = (unsigned long) READ_ONCE(lock->owner);
| ^
2 errors generated.
Should this series perhaps include changes for the file
scripts/context-analysis-suppression.txt?
Thanks,
Bart.