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)
_______________________________________________
svn-src-head@freebsd.org mailing list
https://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to