Re: [PATCH bpf-next] libbpf: Fix arm64 build

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Mar 8, 2021 at 10:26 AM Jean-Philippe Brucker
<jean-philippe@xxxxxxxxxx> 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@xxxxxxxxxx>
> ---
>  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
>



[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux