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

Hans Petter Selasky hselasky at FreeBSD.org
Tue Mar 7 15:34:51 UTC 2017


Author: hselasky
Date: Tue Mar  7 15:34:49 2017
New Revision: 314860
URL: https://svnweb.freebsd.org/changeset/base/314860

Log:
  Fix implementation of the DECLARE_RWSEM() macro in the LinuxKPI.
  
  MFC after:		1 week
  Sponsored by:		Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/linux/rwsem.h

Modified: head/sys/compat/linuxkpi/common/include/linux/rwsem.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/linux/rwsem.h	Tue Mar  7 15:33:38 2017	(r314859)
+++ head/sys/compat/linuxkpi/common/include/linux/rwsem.h	Tue Mar  7 15:34:49 2017	(r314860)
@@ -66,9 +66,9 @@ struct rw_semaphore {
 struct rw_semaphore name;						\
 static void name##_rwsem_init(void *arg)				\
 {									\
-	linux_init_rwsem(&name, rwsem_name(#name))			\
+	linux_init_rwsem(&name, rwsem_name(#name));			\
 }									\
-SYSINIT(name, SI_SUB_LOCKS, SI_ORDER_SECOND, name##_rwsem_init, NULL)
+SYSINIT(name, SI_SUB_LOCK, SI_ORDER_SECOND, name##_rwsem_init, NULL)
 
 static inline void
 linux_init_rwsem(struct rw_semaphore *rw, const char *name)


More information about the svn-src-all mailing list