diff options
author | Jean-Philippe Brucker <jean-philippe@linaro.org> | 2021-03-08 19:25:22 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-03-08 10:35:33 -0800 |
commit | a6aac408c56112f73d28ea8567c29b2a7fe8fccc (patch) | |
tree | fe260e82dbe10baf6b559d3ff7464abe2b53bb66 | |
parent | bbb41728e61a602ec76cbfec2a49ccc763d305b7 (diff) | |
download | lwn-a6aac408c56112f73d28ea8567c29b2a7fe8fccc.tar.gz lwn-a6aac408c56112f73d28ea8567c29b2a7fe8fccc.zip |
libbpf: Fix arm64 build
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
-rw-r--r-- | tools/lib/bpf/libbpf_util.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/lib/bpf/libbpf_util.h b/tools/lib/bpf/libbpf_util.h index 94a0d7bb6f3c..cfbcfc063c81 100644 --- 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) \ |