Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 5 Apr 2019 11:11:35 +0000 (UTC)
From:      Hans Petter Selasky <hselasky@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-11@freebsd.org
Subject:   svn commit: r345916 - stable/11/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201904051111.x35BBZLx000773@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Fri Apr  5 11:11:35 2019
New Revision: 345916
URL: https://svnweb.freebsd.org/changeset/base/345916

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

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

Modified: stable/11/sys/compat/linuxkpi/common/include/linux/srcu.h
==============================================================================
--- stable/11/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Apr  5 11:11:20 2019	(r345915)
+++ stable/11/sys/compat/linuxkpi/common/include/linux/srcu.h	Fri Apr  5 11:11:35 2019	(r345916)
@@ -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?201904051111.x35BBZLx000773>