Commit 6951b12a authored by Dmitry Baryshkov's avatar Dmitry Baryshkov Committed by Ingo Molnar
Browse files

lockdep: fix spurious 'inconsistent lock state' warning

Since f82b217e

 lockdep can output spurious
warnings related to hwirqs due to hardirq_off shrinkage from int to bit-sized
flag. Guard it with double negation to fix the warning.
Signed-off-by: default avatarDmitry Baryshkov <>
Acked-by: default avatarPeter Zijlstra <>
Signed-off-by: default avatarIngo Molnar <>
parent b09c3e3f
......@@ -2582,7 +2582,7 @@ static int __lock_acquire(struct lockdep_map *lock, unsigned int subclass,
hlock->trylock = trylock;
hlock->read = read;
hlock->check = check;
hlock->hardirqs_off = hardirqs_off;
hlock->hardirqs_off = !!hardirqs_off;
hlock->waittime_stamp = 0;
hlock->holdtime_stamp = sched_clock();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment