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

From: Florian Fainelli

Date: Thu Oct 01 2026 - 12:37:42 EST


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(-)

--
2.34.1