svn commit: r317138 - head/sys/compat/linuxkpi/common/include/linux

Hans Petter Selasky hselasky at FreeBSD.org
Wed Apr 19 13:04:36 UTC 2017


Author: hselasky
Date: Wed Apr 19 13:04:34 2017
New Revision: 317138
URL: https://svnweb.freebsd.org/changeset/base/317138

Log:
  Use __typeof() instead of typeof() in some RCU related macros in the LinuxKPI.
  
  MFC after:		1 week
  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 Apr 19 13:03:29 2017	(r317137)
+++ head/sys/compat/linuxkpi/common/include/linux/rcupdate.h	Wed Apr 19 13:04:34 2017	(r317138)
@@ -36,7 +36,7 @@
 #define	LINUX_KFREE_RCU_OFFSET_MAX	4096	/* exclusive */
 
 #define	RCU_INITIALIZER(v)			\
-	((typeof(*(v)) __force __rcu *)(v))
+	((__typeof(*(v)) *)(v))
 
 #define	RCU_INIT_POINTER(p, v) do {		\
 	(p) = (v);				\
@@ -74,10 +74,10 @@
 } while (0)
 
 #define	rcu_access_pointer(p)			\
-	((typeof(*p) __force __kernel *)(READ_ONCE(p)))
+	((__typeof(*p) *)(READ_ONCE(p)))
 
 #define	rcu_dereference_protected(p, c)		\
-	((typeof(*p) __force __kernel *)(p))
+	((__typeof(*p) *)(p))
 
 #define	rcu_dereference(p)			\
 	rcu_dereference_protected(p, 0)


More information about the svn-src-head mailing list