From 2bb46d55160cf1d02d521422bf9f3a034a95112b Mon Sep 17 00:00:00 2001 From: Hans Petter Selasky Date: Thu, 26 May 2016 10:03:22 +0000 Subject: [PATCH] Define ATOMIC_LONG_INIT() in the LinuxKPI. Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies --- sys/compat/linuxkpi/common/include/asm/atomic-long.h | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/compat/linuxkpi/common/include/asm/atomic-long.h b/sys/compat/linuxkpi/common/include/asm/atomic-long.h index 6fbdc5e5556..b7ccba5fcba 100644 --- a/sys/compat/linuxkpi/common/include/asm/atomic-long.h +++ b/sys/compat/linuxkpi/common/include/asm/atomic-long.h @@ -35,6 +35,8 @@ #include #include +#define ATOMIC_LONG_INIT(x) { .counter = (x) } + typedef struct { volatile long counter; } atomic_long_t;