Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 13 Mar 2019 19:24:31 +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: r345106 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201903131924.x2DJOVt6007693@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: hselasky
Date: Wed Mar 13 19:24:30 2019
New Revision: 345106
URL: https://svnweb.freebsd.org/changeset/base/345106

Log:
  Define some RCU debug macros 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/rcupdate.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rcupdate.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rcupdate.h	Wed Mar 13 19:21:19 2019	(r345105)
+++ head/sys/compat/linuxkpi/common/include/linux/rcupdate.h	Wed Mar 13 19:24:30 2019	(r345106)
@@ -100,4 +100,10 @@ extern void linux_rcu_read_lock(void);
 extern void linux_rcu_read_unlock(void);
 extern void linux_synchronize_rcu(void);
 
+/* Empty implementation for !DEBUG */
+#define	init_rcu_head(...)
+#define	destroy_rcu_head(...)
+#define	init_rcu_head_on_stack(...)
+#define	destroy_rcu_head_on_stack(...)
+
 #endif					/* _LINUX_RCUPDATE_H_ */



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