diff options
author | Integral <integral@archlinuxcn.org> | 2024-12-29 12:06:07 +0800 |
---|---|---|
committer | Kent Overstreet <kent.overstreet@linux.dev> | 2024-12-29 08:44:50 -0500 |
commit | 634c812a1ed05de8e3d1dc146eed95b942e1e38d (patch) | |
tree | 9023cb88d58c5138383b0c3737f2c952d626e1dd | |
parent | 601deb6e5d56fecb8cd403c63516bd0b4a14e7a9 (diff) |
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>
-rw-r--r-- | include/linux/atomic.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/atomic.h b/include/linux/atomic.h index f7b2619a..128f21f6 100644 --- a/include/linux/atomic.h +++ b/include/linux/atomic.h @@ -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) \ |