From: Luca Coelho <luciano.coelho@xxxxxxxxx> The iwlwifi driver now needs this function. Backport it. Signed-off-by: Luca Coelho <luciano.coelho@xxxxxxxxx> --- backport/backport-include/linux/atomic.h | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/backport/backport-include/linux/atomic.h b/backport/backport-include/linux/atomic.h index b4dd2e1d34f0..9ceb586e864a 100644 --- a/backport/backport-include/linux/atomic.h +++ b/backport/backport-include/linux/atomic.h @@ -51,4 +51,13 @@ #endif /* atomic_try_cmpxchg_acquire */ +#if LINUX_VERSION_IS_LESS(4,19,0) +#ifndef atomic_fetch_add_unless +static inline int atomic_fetch_add_unless(atomic_t *v, int a, int u) +{ + return __atomic_add_unless(v, a, u); +} +#endif +#endif + #endif /* __BP_ATOMIC_H */ -- 2.20.1 -- To unsubscribe from this list: send the line "unsubscribe backports" in