svn commit: r300725 - head/sys/compat/linuxkpi/common/include/asm

Hans Petter Selasky hselasky at FreeBSD.org
Thu May 26 10:03:23 UTC 2016


Author: hselasky
Date: Thu May 26 10:03:22 2016
New Revision: 300725
URL: https://svnweb.freebsd.org/changeset/base/300725

Log:
  Define ATOMIC_LONG_INIT() in the LinuxKPI.
  
  Obtained from:	kmacy @
  MFC after:	1 week
  Sponsored by:	Mellanox Technologies

Modified:
  head/sys/compat/linuxkpi/common/include/asm/atomic-long.h

Modified: head/sys/compat/linuxkpi/common/include/asm/atomic-long.h
==============================================================================
--- head/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Thu May 26 09:53:24 2016	(r300724)
+++ head/sys/compat/linuxkpi/common/include/asm/atomic-long.h	Thu May 26 10:03:22 2016	(r300725)
@@ -35,6 +35,8 @@
 #include <sys/types.h>
 #include <machine/atomic.h>
 
+#define	ATOMIC_LONG_INIT(x)	{ .counter = (x) }
+
 typedef struct {
 	volatile long counter;
 } atomic_long_t;


More information about the svn-src-all mailing list