Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2019 18:00:26 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r345094 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201903131800.x2DI0QY3057563@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Mar 13 18:00:25 2019
New Revision: 345094
URL: https://svnweb.freebsd.org/changeset/base/345094

Log:
  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

Modified:
  head/sys/compat/linuxkpi/common/include/linux/srcu.h

Modified: head/sys/compat/linuxkpi/common/include/linux/srcu.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/srcu.h	Wed Mar 13 17:55:58 2019	(r345093)
+++ head/sys/compat/linuxkpi/common/include/linux/srcu.h	Wed Mar 13 18:00:25 2019	(r345094)
@@ -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 *);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201903131800.x2DI0QY3057563>