bcachefs-tools: fix on 32bit.

This commit is contained in:
Leah Neukirchen 2023-12-20 19:41:36 +01:00
parent dd23c0a948
commit 0f571c726c
2 changed files with 16 additions and 1 deletions

View File

@ -0,0 +1,15 @@
--- a/include/linux/atomic.h
+++ b/include/linux/atomic.h
@@ -300,6 +300,12 @@
DEF_ATOMIC_OPS(atomic64, s64)
#else
s64 atomic64_read(const atomic64_t *v);
+static inline s64 atomic64_read_acquire(const atomic64_t *v) \
+{ \
+ s64 ret = atomic64_read(&v->counter); \
+ smp_mb__after_atomic(); \
+ return ret; \
+} \
void atomic64_set(atomic64_t *v, s64);
s64 atomic64_add_return(s64, atomic64_t *);

View File

@ -6,7 +6,7 @@ revision=1
build_style=gnu-makefile
make_install_args="ROOT_SBINDIR=/usr/bin"
make_use_env=yes
hostmakedepends="pkg-config cargo clang"
hostmakedepends="pkg-config cargo clang liburcu-devel"
makedepends="rust attr-devel keyutils-devel libaio-devel libblkid-devel
liblz4-devel libscrypt-devel libsodium-devel libudev-devel liburcu-devel
libuuid-devel libzstd-devel zlib-devel"