projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bbb4172
)
libbpf: Fix arm64 build
author
Jean-Philippe Brucker
<jean-philippe@linaro.org>
Mon, 8 Mar 2021 18:25:22 +0000
(19:25 +0100)
committer
Andrii Nakryiko
<andrii@kernel.org>
Mon, 8 Mar 2021 18:35:33 +0000
(10:35 -0800)
The macro for libbpf_smp_store_release() doesn't build on arm64, fix it.
Fixes: 291471dd1559 ("libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link:
https://lore.kernel.org/bpf/20210308182521.155536-1-jean-philippe@linaro.org
tools/lib/bpf/libbpf_util.h
patch
|
blob
|
history
diff --git
a/tools/lib/bpf/libbpf_util.h
b/tools/lib/bpf/libbpf_util.h
index 94a0d7bb6f3c533298041ffceed0ab935edbe190..cfbcfc063c81c96c558e9626b030d23dcc32601e 100644
(file)
--- a/
tools/lib/bpf/libbpf_util.h
+++ b/
tools/lib/bpf/libbpf_util.h
@@
-35,7
+35,7
@@
extern "C" {
typeof(*p) ___p1; \
asm volatile ("ldar %w0, %1" \
: "=r" (___p1) : "Q" (*p) : "memory"); \
- __
p1;
\
+ __
_p1;
\
})
#elif defined(__riscv)
# define libbpf_smp_store_release(p, v) \