From: bluhm Date: Tue, 18 Apr 2023 16:57:44 +0000 (+0000) Subject: Define net lock assertions for building kernel code in regress. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=aa678fb14687bd341e484c17813fcd2fa0d4ed54;p=openbsd Define net lock assertions for building kernel code in regress. --- 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)