libbpf: Fix arm64 build

The macro for libbpf_smp_store_release() doesn't build on arm64, fix it.

Fixes: 291471dd15 ("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
This commit is contained in:
Jean-Philippe Brucker 2021-03-08 19:25:22 +01:00 committed by Andrii Nakryiko
parent bbb41728e6
commit a6aac408c5

View File

@ -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) \