Linux bcachefs list
 help / color / mirror / Atom feed
* [PATCH] Fix build failure on liburcu v0.15.0
@ 2024-12-29  4:06 Integral
  2024-12-29 14:40 ` Kent Overstreet
  0 siblings, 1 reply; 2+ messages in thread
From: Integral @ 2024-12-29  4:06 UTC (permalink / raw)
  To: kent.overstreet, kent.overstreet, lihongbo22
  Cc: mmpgouride, linux-bcachefs, integral

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>
---
 include/linux/atomic.h | 4 ++--
 1 file 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)	\
--
2.47.1


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] Fix build failure on liburcu v0.15.0
  2024-12-29  4:06 [PATCH] Fix build failure on liburcu v0.15.0 Integral
@ 2024-12-29 14:40 ` Kent Overstreet
  0 siblings, 0 replies; 2+ messages in thread
From: Kent Overstreet @ 2024-12-29 14:40 UTC (permalink / raw)
  To: Integral; +Cc: kent.overstreet, lihongbo22, mmpgouride, linux-bcachefs

On Sun, Dec 29, 2024 at 12:06:07PM +0800, Integral wrote:
> 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>

Thanks, applied

> ---
>  include/linux/atomic.h | 4 ++--
>  1 file 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)	\
> --
> 2.47.1
> 

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-12-29 14:40 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-12-29  4:06 [PATCH] Fix build failure on liburcu v0.15.0 Integral
2024-12-29 14:40 ` Kent Overstreet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox