Module Name:    src
Committed By:   ozaki-r
Date:           Fri Jan 27 09:50:47 UTC 2017

Modified Files:
        src/sys/rump/librump/rumpkern: locks.c

Log Message:
Unbreak builds of rump libraries with RUMP_LOCKDEBUG


To generate a diff of this commit:
cvs rdiff -u -r1.72 -r1.73 src/sys/rump/librump/rumpkern/locks.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/rump/librump/rumpkern/locks.c
diff -u src/sys/rump/librump/rumpkern/locks.c:1.72 src/sys/rump/librump/rumpkern/locks.c:1.73
--- src/sys/rump/librump/rumpkern/locks.c:1.72	Tue Jan 26 23:12:17 2016
+++ src/sys/rump/librump/rumpkern/locks.c	Fri Jan 27 09:50:47 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: locks.c,v 1.72 2016/01/26 23:12:17 pooka Exp $	*/
+/*	$NetBSD: locks.c,v 1.73 2017/01/27 09:50:47 ozaki-r Exp $	*/
 
 /*
  * Copyright (c) 2007-2011 Antti Kantee.  All Rights Reserved.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.72 2016/01/26 23:12:17 pooka Exp $");
+__KERNEL_RCSID(0, "$NetBSD: locks.c,v 1.73 2017/01/27 09:50:47 ozaki-r Exp $");
 
 #include <sys/param.h>
 #include <sys/kmem.h>
@@ -61,18 +61,22 @@ static lockops_t rw_lockops = {
 	NULL
 };
 
-#define ALLOCK(lock, ops)		\
-    lockdebug_alloc(lock, ops, (uintptr_t)__builtin_return_address(0))
+#define ALLOCK(lock, ops)				\
+    lockdebug_alloc(__func__, __LINE__, lock, ops,	\
+    (uintptr_t)__builtin_return_address(0))
 #define FREELOCK(lock)			\
-    lockdebug_free(lock)
-#define WANTLOCK(lock, shar)	\
-    lockdebug_wantlock(lock, (uintptr_t)__builtin_return_address(0), shar)
-#define LOCKED(lock, shar)		\
-    lockdebug_locked(lock, NULL, (uintptr_t)__builtin_return_address(0), shar)
+    lockdebug_free(__func__, __LINE__, lock)
+#define WANTLOCK(lock, shar)				\
+    lockdebug_wantlock(__func__, __LINE__, lock,	\
+    (uintptr_t)__builtin_return_address(0), shar)
+#define LOCKED(lock, shar)				\
+    lockdebug_locked(__func__, __LINE__, lock, NULL,	\
+    (uintptr_t)__builtin_return_address(0), shar)
 #define UNLOCKED(lock, shar)		\
-    lockdebug_unlocked(lock, (uintptr_t)__builtin_return_address(0), shar)
+    lockdebug_unlocked(__func__, __LINE__, lock,	\
+    (uintptr_t)__builtin_return_address(0), shar)
 #define BARRIER(lock, slp)		\
-    lockdebug_barrier(lock, slp)
+    lockdebug_barrier(__func__, __LINE__, lock, slp)
 #else
 #define ALLOCK(a, b)
 #define FREELOCK(a)

Reply via email to