atomic64_set() is now used by mac80211 and it is not available on some old arm kernels. Signed-off-by: Hauke Mehrtens <hauke@xxxxxxxxxx> --- backport/compat/compat_atomic.c | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/backport/compat/compat_atomic.c b/backport/compat/compat_atomic.c index f91ae75..5ced5a4 100644 --- a/backport/compat/compat_atomic.c +++ b/backport/compat/compat_atomic.c @@ -17,6 +17,16 @@ long long atomic64_read(const atomic64_t *v) } EXPORT_SYMBOL_GPL(atomic64_read); +void atomic64_set(atomic64_t *v, long long i) +{ + unsigned long flags; + + spin_lock_irqsave(&lock, flags); + v->counter = i; + spin_unlock_irqrestore(&lock, flags); +} +EXPORT_SYMBOL_GPL(atomic64_set); + long long atomic64_add_return(long long a, atomic64_t *v) { unsigned long flags; -- 1.7.10.4 -- To unsubscribe from this list: send the line "unsubscribe backports" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html