lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAEf4BzY8q9FZoudxan1aHoL0uw86-itfq0+QsSsn=Q_vRpKtNQ@mail.gmail.com>
Date:   Fri, 21 May 2021 17:48:16 -0700
From:   Andrii Nakryiko <andrii.nakryiko@...il.com>
To:     Naresh Kamboju <naresh.kamboju@...aro.org>
Cc:     bpf <bpf@...r.kernel.org>, Netdev <netdev@...r.kernel.org>,
        lkft-triage@...ts.linaro.org, Andrii Nakryiko <andrii@...nel.org>,
        Kernel Team <kernel-team@...com>,
        Alexei Starovoitov <ast@...com>,
        Daniel Borkmann <daniel@...earbox.net>,
        Yonghong Song <yhs@...com>,
        Daniel Díaz <daniel.diaz@...aro.org>
Subject: Re: bbpf_internal.h:102:22: error: format '%ld' expects argument of
 type 'long int', but argument 3 has type 'int' [-Werror=format=]

On Thu, May 20, 2021 at 6:51 AM Naresh Kamboju
<naresh.kamboju@...aro.org> wrote:
>
> The perf build failed on i386 on Linux next-20210519 and next-20210520 tag
>  with gcc-7.3 due to below warnings / errors.

Thanks, being addressed in [0].

  [0] https://lore.kernel.org/bpf/20210521162041.GH8544@kitsune.suse.cz/

>
> In file included from libbpf.c:55:0:
> libbpf.c: In function 'init_map_slots':
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 3 has type 'int' [-Werror=format=]
>   libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
>                       ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
>  #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
>                            ^~~~
> libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
>     pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
>     ^~~~~~~
> libbpf.c:4568:44: note: format string is defined here
>     pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
>                                           ~~^
>                                           %d
> In file included from libbpf.c:55:0:
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 5 has type 'int' [-Werror=format=]
>   libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
>                       ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
>  #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
>                            ^~~~
> libbpf.c:4568:4: note: in expansion of macro 'pr_warn'
>     pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
>     ^~~~~~~
> libbpf.c:4568:70: note: format string is defined here
>     pr_warn("// TODO map_update_elem: idx %ld key %d value==map_idx %ld\n",
>                                                                     ~~^
>                                                                     %d
>   CC      /srv/oe/build/tmp-lkft-glibc/work/intel_core2_32-linaro-linux/perf/1.0-r9/perf-1.0/cpu.o
> In file included from libbpf.c:55:0:
> libbpf.c: In function 'bpf_core_apply_relo':
> libbpf_internal.h:102:22: error: format '%ld' expects argument of type
> 'long int', but argument 3 has type 'int' [-Werror=format=]
>   libbpf_print(level, "libbpf: " fmt, ##__VA_ARGS__); \
>                       ^
> libbpf_internal.h:105:27: note: in expansion of macro '__pr'
>  #define pr_warn(fmt, ...) __pr(LIBBPF_WARN, fmt, ##__VA_ARGS__)
>                            ^~~~
> libbpf.c:6192:3: note: in expansion of macro 'pr_warn'
>    pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
>    ^~~~~~~
> libbpf.c:6192:38: note: format string is defined here
>    pr_warn("// TODO core_relo: prog %ld insn[%d] %s %s kind %d\n",
>                                     ~~^
>                                     %d
>
> Reported-by: Naresh Kamboju <naresh.kamboju@...aro.org>
>
> https://ci.linaro.org/view/lkft/job/openembedded-lkft-linux-next/DISTRO=lkft,MACHINE=intel-core2-32,label=docker-buster-lkft/1030/consoleText
>
> --
> Linaro LKFT
> https://lkft.linaro.org

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ