tools/liblockdep: Account for bitfield changes in lockdeps lock_acquire
authorS. Lockwood-Childs <sjl@dent.vctlabs.com>
Mon, 7 Jul 2014 07:17:33 +0000 (00:17 -0700)
committerSasha Levin <sasha.levin@oracle.com>
Mon, 7 Jul 2014 16:20:16 +0000 (12:20 -0400)
commitb10827814e9c81c5a14fb73c5a6e06bd85df3f94
tree8204c0016c6fd62fb45460199a4ec6235fbf1e72
parent0c37c686b336aeead2f0b982f24eafaeb19435b1
tools/liblockdep: Account for bitfield changes in lockdeps lock_acquire

Commit fb9edbe984 shortened held_lock->check from a 2-bit field
to a 1-bit field.

Make liblockdep compatible with the new definition by passing check=1
to lock_acquire() calls, rather than the old value check=2 (which
inadvertently disabled checks by overflowing to 0).

Without this fix, several of the test cases in liblockdep run_tests.sh
were failing.

Signed-off-by: S. Lockwood-Childs <sjl@vctlabs.com>
Signed-off-by: Sasha Levin <sasha.levin@oracle.com>
tools/lib/lockdep/include/liblockdep/mutex.h
tools/lib/lockdep/include/liblockdep/rwlock.h
tools/lib/lockdep/preload.c