summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorJiri Olsa <jolsa@kernel.org>2022-03-28 11:37:03 +0300
committerAlexei Starovoitov <ast@kernel.org>2022-03-29 05:10:25 +0300
commitef8a257b4e499a979364b1f9caf25a325f6ee8b8 (patch)
treefae60c393eb15760ab96f796565f24f99fc78682 /arch
parent99dea2c664d7bc7e4f6f6947182d0d365165a998 (diff)
downloadlinux-ef8a257b4e499a979364b1f9caf25a325f6ee8b8.tar.xz
bpftool: Fix generated code in codegen_asserts
Arnaldo reported perf compilation fail with: $ make -k BUILD_BPF_SKEL=1 CORESIGHT=1 PYTHON=python3 ... In file included from util/bpf_counter.c:28: /tmp/build/perf//util/bpf_skel/bperf_leader.skel.h: In function ‘bperf_leader_bpf__assert’: /tmp/build/perf//util/bpf_skel/bperf_leader.skel.h:351:51: error: unused parameter ‘s’ [-Werror=unused-parameter] 351 | bperf_leader_bpf__assert(struct bperf_leader_bpf *s) | ~~~~~~~~~~~~~~~~~~~~~~~~~^ cc1: all warnings being treated as errors If there's nothing to generate in the new assert function, we will get unused 's' warn/error, adding 'unused' attribute to it. Fixes: 08d4dba6ae77 ("bpftool: Bpf skeletons assert type sizes") Reported-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Jiri Olsa <jolsa@kernel.org> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Tested-by: Arnaldo Carvalho de Melo <acme@redhat.com> Link: https://lore.kernel.org/bpf/20220328083703.2880079-1-jolsa@kernel.org
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions