Fix build failure on liburcu v0.15.0

After upgrading liburcu to v0.15.0, bcachefs-tools failed to build. This patch
fixes build errors on liburcu v0.15.0.

Signed-off-by: Integral <integral@archlinuxcn.org>
Signed-off-by: Kent Overstreet <kent.overstreet@linux.dev>
This commit is contained in:
Integral 2024-12-29 12:06:07 +08:00 committed by Kent Overstreet
parent 601deb6e5d
commit 634c812a1e

View File

@ -188,12 +188,12 @@ static inline i_type a_type##_read_acquire(const a_type##_t *v) \
\
static inline void a_type##_set(a_type##_t *v, i_type i) \
{ \
return __ATOMIC_SET(&v->counter, i); \
__ATOMIC_SET(&v->counter, i); \
} \
\
static inline void a_type##_set_release(a_type##_t *v, i_type i) \
{ \
return __ATOMIC_SET_RELEASE(&v->counter, i); \
__ATOMIC_SET_RELEASE(&v->counter, i); \
} \
\
static inline i_type a_type##_add_return(i_type i, a_type##_t *v) \