From 59b53b08aef84c836289f4230075c47316c9fb05 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Tue, 28 Jun 2022 10:01:14 +0000 Subject: Use refcnt API for struct rtentry instead of hand-crafted atomic operations. OK mvs@ --- regress/sys/net/rtable/kern_compat.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'regress') diff --git a/regress/sys/net/rtable/kern_compat.h b/regress/sys/net/rtable/kern_compat.h index 6515fe389f6..874e726de65 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.12 2021/04/13 08:21:12 claudio Exp $ */ +/* $OpenBSD: kern_compat.h,v 1.13 2022/06/28 10:01:13 bluhm Exp $ */ #ifndef _KERN_COMPAT_H_ #define _KERN_COMPAT_H_ @@ -74,6 +74,8 @@ extern struct domain *domains[]; #define rw_exit_write(rwl) #define rw_assert_wrlock(rwl) +#define refcnt_read(cnt) 1 + #define SET(t, f) ((t) |= (f)) #define CLR(t, f) ((t) &= ~(f)) #define ISSET(t, f) ((t) & (f)) -- cgit v1.2.3