linux/tools/lib/lockdep
Bart Van Assche 94f1f42384 tools/lib/lockdep: Rename "trywlock" into "trywrlock"
commit 7f3c7952d1 upstream.

This patch avoids that the following compiler warning is reported while
compiling the lockdep unit tests:

include/liblockdep/rwlock.h: In function 'liblockdep_pthread_rwlock_trywlock':
include/liblockdep/rwlock.h:66:9: warning: implicit declaration of function 'pthread_rwlock_trywlock'; did you mean 'pthread_rwlock_trywrlock'? [-Wimplicit-function-declaration]
  return pthread_rwlock_trywlock(&lock->rwlock) == 0 ? 1 : 0;
         ^~~~~~~~~~~~~~~~~~~~~~~
         pthread_rwlock_trywrlock

Signed-off-by: Bart Van Assche <bvanassche@acm.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Sasha Levin <sasha.levin@oracle.com>
Cc: Sasha Levin <sashal@kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Waiman Long <longman@redhat.com>
Cc: johannes.berg@intel.com
Cc: tj@kernel.org
Fixes: 5a52c9b480 ("liblockdep: Add public headers for pthread_rwlock_t implementation")
Link: https://lkml.kernel.org/r/20181207011148.251812-6-bvanassche@acm.org
Signed-off-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-04-04 16:13:48 +01:00
..
include/liblockdep tools/lib/lockdep: Rename "trywlock" into "trywrlock" 2019-04-04 16:13:48 +01:00
tests liblockdep: Add pthread_rwlock_t test suite 2013-11-27 11:55:24 +01:00
uinclude tools/lib/lockdep: Reduce MAX_LOCK_DEPTH to avoid overflowing lock_chain/: Depth 2017-10-12 15:27:44 +01:00
common.c liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
lockdep liblockdep: Add the 'lockdep' user-space utility 2013-11-27 11:56:25 +01:00
lockdep.c liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
lockdep_internals.h liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
lockdep_states.h liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
Makefile Merge branch 'perf-core-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip into next 2014-06-03 13:18:00 -07:00
preload.c tools/liblockdep: Account for bitfield changes in lockdeps lock_acquire 2014-07-07 12:20:16 -04:00
rbtree.c liblockdep: Wrap kernel/locking/lockdep.c to allow usage from userspace 2013-11-27 11:55:21 +01:00
run_tests.sh tools/liblockdep: Mark runtests.sh as executable 2014-02-26 21:21:59 -05:00