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