Skip to content

perf build warnings fixes

Florian Fainelli bpf linux-perf-users lkml stable 1 version Applied

Status from this message: Queued the series for 5.10, thanks.

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyApplied

Patches in v1 Applied

#Subject and filesSizeRepliesApplied
1/2perf tools: Fix a asan issue in parse_events_multi_pmu_add()tools/perf/util/parse-events.c+1 -10 replies
2/2perf test bpf: Address error about non-null argument for epoll_pwait 2nd argtools/perf/tests/bpf.c+2 -10 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchIan Rogers
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH stable 5.10 0/2] perf build warnings fixes

This patch series fixes the following build warnings:

tests/bpf.c: In function 'epoll_pwait_loop':
tests/bpf.c:36:17: error: argument 2 null where non-null expected [-Werror=nonnull]

   36 |                 epoll_pwait(-(i + 1), NULL, 0, 0, NULL);
      |                 ^~~~~~~~~~~

In file included from tests/bpf.c:5:
../../../../per-package/linux-tools/host/arm-buildroot-linux-gnueabihf/sysroot/usr/include/sys/epoll.h:134:12:
note: in a call to function 'epoll_pwait' declared 'nonnull'
134 | extern int epoll_pwait (int __epfd, struct epoll_event
*__events,

      |            ^~~~~~~~~~~

cc1: all warnings being treated as errors
In function 'parse_events_term__num',
inlined from 'parse_events_multi_pmu_add' at
util/parse-events.c:1602:6:
util/parse-events.c:2653:64: error: array subscript 'YYLTYPE[0]' is partly outside array bounds of 'char[8]' [-Werror=array-bounds]
2653 | .err_term = loc_term ? loc_term->first_column :
0,

      |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
util/parse-events.c: In function 'parse_events_multi_pmu_add':
util/parse-events.c:1587:15: note: object 'config' of size 8
 1587 |         char *config;
      |               ^~~~~~

cc1: all warnings being treated as errors

Arnaldo Carvalho de Melo (1):
perf test bpf: Address error about non-null argument for epoll_pwait
2nd arg

Namhyung Kim (1):
perf tools: Fix a asan issue in parse_events_multi_pmu_add()

 tools/perf/tests/bpf.c         | 3 ++-
 tools/perf/util/parse-events.c | 2 +-
 2 files changed, 3 insertions(+), 2 deletions(-)
Signature · 1 line
2.34.1