Implement DEFINE_STATIC_SRCU() function macro in the LinuxKPI.

Submitted by:		Johannes Lundberg <johalun0@gmail.com>
MFC after:		1 week
Sponsored by:		Limelight Networks
Sponsored by:		Mellanox Technologies
This commit is contained in:
Hans Petter Selasky 2019-03-13 18:00:25 +00:00
parent 884aaac660
commit 8b2a8a4954

View file

@ -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 *);