aboutsummaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorHans Petter Selasky <hselasky@FreeBSD.org>2019-03-13 18:00:25 +0000
committerHans Petter Selasky <hselasky@FreeBSD.org>2019-03-13 18:00:25 +0000
commit8b2a8a4954503dc8a5f518bf0f243a948a415d50 (patch)
treef5bae07b5e04cd5ba0d4a1c105e10f9df82f502a /sys
parent884aaac660c552a9166e3b69586d47ac04d16bf6 (diff)
Notes
Diffstat (limited to 'sys')
-rw-r--r--sys/compat/linuxkpi/common/include/linux/srcu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/compat/linuxkpi/common/include/linux/srcu.h b/sys/compat/linuxkpi/common/include/linux/srcu.h
index f89fc82a8e1e..b5cebe123651 100644
--- a/sys/compat/linuxkpi/common/include/linux/srcu.h
+++ b/sys/compat/linuxkpi/common/include/linux/srcu.h
@@ -34,6 +34,9 @@ struct srcu_struct {
#define srcu_dereference(ptr,srcu) ((__typeof(*(ptr)) *)(ptr))
+#define DEFINE_STATIC_SRCU(name) \
+ static struct srcu_struct name = {}
+
/* prototypes */
extern int srcu_read_lock(struct srcu_struct *);