Define net lock assertions for building kernel code in regress.
authorbluhm <bluhm@openbsd.org>
Tue, 18 Apr 2023 16:57:44 +0000 (16:57 +0000)
committerbluhm <bluhm@openbsd.org>
Tue, 18 Apr 2023 16:57:44 +0000 (16:57 +0000)
regress/sys/net/rtable/kern_compat.h

index 874e726..5fc616d 100644 (file)
@@ -1,4 +1,4 @@
-/*     $OpenBSD: kern_compat.h,v 1.13 2022/06/28 10:01:13 bluhm Exp $  */
+/*     $OpenBSD: kern_compat.h,v 1.14 2023/04/18 16:57:44 bluhm Exp $  */
 
 #ifndef _KERN_COMPAT_H_
 #define _KERN_COMPAT_H_
 #define KERNEL_LOCK()          /* nothing */
 #define KERNEL_UNLOCK()                /* nothing */
 
+#define NET_ASSERT_UNLOCKED()          /* nothing */
+#define NET_ASSERT_LOCKED()            /* nothing */
+#define NET_ASSERT_LOCKED_EXCLUSIVE()  /* nothing */
+
 #define panic(x...) errx(1, x)
 
 #define malloc(size, bucket, flag)             calloc(1, size)