* [PATCH bpf-next] libbpf: Fix arm64 build
@ 2021-03-08 18:25 Jean-Philippe Brucker
2021-03-08 18:37 ` Andrii Nakryiko
2021-03-08 18:40 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Jean-Philippe Brucker @ 2021-03-08 18:25 UTC (permalink / raw)
To: ast, daniel, andrii; +Cc: bpf, bjorn, Jean-Philippe Brucker
The macro for libbpf_smp_store_release() doesn't build on arm64, fix it.
Fixes: 60d0e5fdbdf6 ("libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire")
Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
---
tools/lib/bpf/libbpf_util.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
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) \
--
2.30.1
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] libbpf: Fix arm64 build
2021-03-08 18:25 [PATCH bpf-next] libbpf: Fix arm64 build Jean-Philippe Brucker
@ 2021-03-08 18:37 ` Andrii Nakryiko
2021-03-08 18:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Andrii Nakryiko @ 2021-03-08 18:37 UTC (permalink / raw)
To: Jean-Philippe Brucker
Cc: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko, bpf, bjorn
On Mon, Mar 8, 2021 at 10:26 AM Jean-Philippe Brucker
<jean-philippe@linaro.org> wrote:
>
> The macro for libbpf_smp_store_release() doesn't build on arm64, fix it.
>
> Fixes: 60d0e5fdbdf6 ("libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire")
I had to force-push bpf-next meanwhile, so the hash is wrong now. I
fixed it up (it's 291471dd1559 now) and pushed your fix to bpf-next.
Please re-pull bpf-master to get the correct branch.
Thanks!
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> ---
> tools/lib/bpf/libbpf_util.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> 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) \
> --
> 2.30.1
>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH bpf-next] libbpf: Fix arm64 build
2021-03-08 18:25 [PATCH bpf-next] libbpf: Fix arm64 build Jean-Philippe Brucker
2021-03-08 18:37 ` Andrii Nakryiko
@ 2021-03-08 18:40 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2021-03-08 18:40 UTC (permalink / raw)
To: Jean-Philippe Brucker; +Cc: ast, daniel, andrii, bpf, bjorn
Hello:
This patch was applied to bpf/bpf-next.git (refs/heads/master):
On Mon, 8 Mar 2021 19:25:22 +0100 you wrote:
> The macro for libbpf_smp_store_release() doesn't build on arm64, fix it.
>
> Fixes: 60d0e5fdbdf6 ("libbpf, xsk: Add libbpf_smp_store_release libbpf_smp_load_acquire")
> Signed-off-by: Jean-Philippe Brucker <jean-philippe@linaro.org>
> ---
> tools/lib/bpf/libbpf_util.h | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
Here is the summary with links:
- [bpf-next] libbpf: Fix arm64 build
https://git.kernel.org/bpf/bpf-next/c/a6aac408c561
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-03-08 18:40 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-03-08 18:25 [PATCH bpf-next] libbpf: Fix arm64 build Jean-Philippe Brucker
2021-03-08 18:37 ` Andrii Nakryiko
2021-03-08 18:40 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).