From aa678fb14687bd341e484c17813fcd2fa0d4ed54 Mon Sep 17 00:00:00 2001 From: bluhm Date: Tue, 18 Apr 2023 16:57:44 +0000 Subject: [PATCH] Define net lock assertions for building kernel code in regress. --- regress/sys/net/rtable/kern_compat.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h index 874e726de65..5fc616d946f 100644 --- a/regress/sys/net/rtable/kern_compat.h +++ b/regress/sys/net/rtable/kern_compat.h @@ -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_ @@ -33,6 +33,10 @@ #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) -- 2.20.1