diff options
| author | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-03-13 18:00:25 +0000 |
|---|---|---|
| committer | Hans Petter Selasky <hselasky@FreeBSD.org> | 2019-03-13 18:00:25 +0000 |
| commit | 8b2a8a4954503dc8a5f518bf0f243a948a415d50 (patch) | |
| tree | f5bae07b5e04cd5ba0d4a1c105e10f9df82f502a /sys | |
| parent | 884aaac660c552a9166e3b69586d47ac04d16bf6 (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/compat/linuxkpi/common/include/linux/srcu.h | 3 |
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 *); |
