changeset 646:f2356832ac94

synch: always expose lockdep_no_locks symbol The mapfile really wants it to exist all the time. The #define in the header will ensure that consumers don't unnecessarily call it when it is known to be a no-op. Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
author Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
date Tue, 01 Jan 2019 11:11:31 -0500
parents f38540db89a0
children b3563ef89203
files synch.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/synch.c	Tue Jan 01 11:10:45 2019 -0500
+++ b/synch.c	Tue Jan 01 11:11:31 2019 -0500
@@ -732,9 +732,10 @@
 	return (ret == PTHREAD_BARRIER_SERIAL_THREAD);
 }
 
-#ifdef JEFFPC_LOCK_TRACKING
+#undef lockdep_no_locks
 void lockdep_no_locks(void)
 {
+#ifdef JEFFPC_LOCK_TRACKING
 	if (!atomic_read(&lockdep_on))
 		return;
 
@@ -742,5 +743,5 @@
 		return;
 
 	error_locks_on_exit();
+#endif
 }
-#endif