From 4f43829e91dbe9f89ea361d7d0a0c2f6408e38fa Mon Sep 17 00:00:00 2001 From: Jan Musial Date: Fri, 8 Sep 2023 12:44:32 +0200 Subject: [PATCH] Implement env_atomic64_dec_return Signed-off-by: Jan Musial Signed-off-by: Michal Mielewczyk --- modules/cas_cache/ocf_env.h | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/modules/cas_cache/ocf_env.h b/modules/cas_cache/ocf_env.h index ce653e0..3a0edb8 100644 --- a/modules/cas_cache/ocf_env.h +++ b/modules/cas_cache/ocf_env.h @@ -1,6 +1,6 @@ /* * Copyright(c) 2012-2022 Intel Corporation -* Copyright(c) 2024 Huawei Technologies +* Copyright(c) 2024-2025 Huawei Technologies * SPDX-License-Identifier: BSD-3-Clause */ @@ -407,6 +407,11 @@ static inline u64 env_atomic64_inc_return(env_atomic64 *a) return atomic64_inc_return(a); } +static inline u64 env_atomic64_dec_return(env_atomic64 *a) +{ + return atomic64_dec_return(a); +} + static inline u64 env_atomic64_cmpxchg(atomic64_t *a, u64 old, u64 new) { return atomic64_cmpxchg(a, old, new);