[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAEf4BzbgJPgVmdS32nnzd8mBj3L=mib7D8JyP09Gq4bGdYpTyg@mail.gmail.com>
Date: Fri, 21 May 2021 17:46:27 -0700
From: Andrii Nakryiko <andrii.nakryiko@...il.com>
To: Michal Suchánek <msuchanek@...e.de>
Cc: Networking <netdev@...r.kernel.org>,
Alexei Starovoitov <ast@...nel.org>,
Daniel Borkmann <daniel@...earbox.net>,
Andrii Nakryiko <andrii@...nel.org>,
Martin KaFai Lau <kafai@...com>,
Song Liu <songliubraving@...com>, Yonghong Song <yhs@...com>,
John Fastabend <john.fastabend@...il.com>,
KP Singh <kpsingh@...nel.org>,
Nathan Chancellor <nathan@...nel.org>,
Nick Desaulniers <ndesaulniers@...gle.com>,
open list <linux-kernel@...r.kernel.org>,
bpf <bpf@...r.kernel.org>,
clang-built-linux <clang-built-linux@...glegroups.com>
Subject: Re: BTF: build failure on 32bit on linux-next
On Fri, May 21, 2021 at 9:20 AM Michal Suchánek <msuchanek@...e.de> wrote:
>
> Hello,
>
> looks like the TODO prints added in 67234743736a6 are not 32bit clean.
>
> Do you plan to implement this functionality or should they be fixed?
They should be fixed regardless. Can you please re-submit as a proper
patch to bpf@...r.kernel.org with [PATCH bpf-next] subj prefix?
>
> Thanks
>
> Michal
>
> diff --git a/tools/lib/bpf/libbpf.c b/tools/lib/bpf/libbpf.c
> index 69cd1a835ebd..70a26af8d01f 100644
> --- a/tools/lib/bpf/libbpf.c
> +++ b/tools/lib/bpf/libbpf.c
> @@ -4565,7 +4565,7 @@ static int init_map_slots(struct bpf_object *obj, struct bpf_map *map)
> targ_map = map->init_slots[i];
> fd = bpf_map__fd(targ_map);
> if (obj->gen_loader) {
> - pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
> + pr_warn("// TODO map_update_elem: idx %td key %d value==map_idx %td\n",
> map - obj->maps, i, targ_map - obj->maps);
> return -ENOTSUP;
> } else {
> @@ -6189,7 +6189,7 @@ static int bpf_core_apply_relo(struct bpf_program *prog,
> return -EINVAL;
>
> if (prog->obj->gen_loader) {
> - pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
> + pr_warn("// TODO core_relo: prog %td insn[%d] %s %s kind %d\n",
> prog - prog->obj->programs, relo->insn_off / 8,
> local_name, spec_str, relo->kind);
> return -ENOTSUP;
Powered by blists - more mailing lists