Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 19 Apr 2017 13:04:35 +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: r317138 - head/sys/compat/linuxkpi/common/include/linux
Message-ID:  <201704191304.v3JD4ZeN093394@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
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)



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