bcachefs-tools: fix on 32bit.
This commit is contained in:
parent
dd23c0a948
commit
0f571c726c
|
@ -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 *);
|
|
@ -6,7 +6,7 @@ revision=1
|
||||||
build_style=gnu-makefile
|
build_style=gnu-makefile
|
||||||
make_install_args="ROOT_SBINDIR=/usr/bin"
|
make_install_args="ROOT_SBINDIR=/usr/bin"
|
||||||
make_use_env=yes
|
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
|
makedepends="rust attr-devel keyutils-devel libaio-devel libblkid-devel
|
||||||
liblz4-devel libscrypt-devel libsodium-devel libudev-devel liburcu-devel
|
liblz4-devel libscrypt-devel libsodium-devel libudev-devel liburcu-devel
|
||||||
libuuid-devel libzstd-devel zlib-devel"
|
libuuid-devel libzstd-devel zlib-devel"
|
||||||
|
|
Loading…
Reference in New Issue