]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/blobdiff - include/asm-generic/atomic-long.h
macvlan: do not assume mac_header is set in macvlan_broadcast()
[mirror_ubuntu-bionic-kernel.git] / include / asm-generic / atomic-long.h
index 49be4bba1e9641de9713ebc06532e581f934e40b..34a028a7bcc53c095a2028f2d0cee89cd3835292 100644 (file)
@@ -244,4 +244,7 @@ static inline long atomic_long_add_unless(atomic_long_t *l, long a, long u)
 #define atomic_long_inc_not_zero(l) \
        ATOMIC_LONG_PFX(_inc_not_zero)((ATOMIC_LONG_PFX(_t) *)(l))
 
+#define atomic_long_cond_read_acquire(v, c) \
+       ATOMIC_LONG_PFX(_cond_read_acquire)((ATOMIC_LONG_PFX(_t) *)(v), (c))
+
 #endif  /*  _ASM_GENERIC_ATOMIC_LONG_H  */