svn commit: r345915 - stable/12/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Fri Apr 5 11:11:22 UTC 2019


Author: hselasky
Date: Fri Apr  5 11:11:20 2019
New Revision: 345915
URL: https://svnweb.freebsd.org/changeset/base/345915

Log:
  MFC r345094:
  Implement DEFINE_STATIC_SRCU() function macro in the LinuxKPI.
  
  Submitted by:		Johannes Lundberg <johalun0 at gmail.com>
  Sponsored by:		Limelight Networks
  Sponsored by:		Mellanox Technologies

Modified:
  stable/12/sys/compat/linuxkpi/common/include/linux/srcu.h
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sys/compat/linuxkpi/common/include/linux/srcu.h
==============================================================================
--- stable/12/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Apr  5 11:10:27 2019	(r345914)
+++ stable/12/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Apr  5 11:11:20 2019	(r345915)
@@ -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 *);


More information about the svn-src-all mailing list