Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 26 May 2016 10:03:22 +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: r300725 - head/sys/compat/linuxkpi/common/include/asm
Message-ID:  <201605261003.u4QA3MSX077092@repo.freebsd.org>

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



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