diff options
| author | Bart Van Assche <bvanassche@acm.org> | 2026-11-18 15:09:57 -0800 |
|---|---|---|
| committer | Ingo Molnar <mingo@kernel.org> | 2026-11-23 10:38:52 +0100 |
| commit | af1a4ab4bf3bcb969ad5ee9e7fca1d23703adf32 (patch) | |
| tree | a86ebe1e594b70a6aab6e550c6eed7cf5aaaa20c /tools/lib/python/feat | |
| parent | b6a9fa34ce4187cb69d3c588a4bbffc31ce5db8f (diff) | |
bit_spinlock: Fix the __bitlock() macro definition
Surround the 'bitnum' argument and the entire __bitlock() macro expansion
with parentheses because 'bitnum' could be an expression that includes an
operator with a lower precedence than the addition operator (e.g. the
exclusive-or operator) and to prevent operator precedence issues in
callers.
Fixes: eb7d96a13bf4 ("bit_spinlock: Support Clang's context analysis")
Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Acked-by: Marco Elver <elver@google.com>
Link: https://patch.msgid.link/38cdec9322fa710f84c018e0b318894c6234c411.1795043161.git.bvanassche@acm.org
Diffstat (limited to 'tools/lib/python/feat')
0 files changed, 0 insertions, 0 deletions
