mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH stable 6.1 0/2] perf build warnings fixes
@ 2026-09-29 19:18 Florian Fainelli
  2026-09-29 19:18 ` [PATCH stable 6.1 1/2] perf tools: Fix a asan issue in parse_events_multi_pmu_add() Florian Fainelli
  2026-09-29 19:18 ` [PATCH stable 6.1 2/2] perf test bpf: Address error about non-null argument for epoll_pwait 2nd arg Florian Fainelli
  0 siblings, 2 replies; 3+ messages in thread
From: Florian Fainelli @ 2026-09-29 19:18 UTC (permalink / raw)
  To: stable
  Cc: Florian Fainelli, Peter Zijlstra, Ingo Molnar,
	Arnaldo Carvalho de Melo, Namhyung Kim, Mark Rutland,
	Alexander Shishkin, Jiri Olsa, Ian Rogers, Adrian Hunter,
	James Clark, Nick Terrell, David Sterba, Thomas Richter,
	open list:PERFORMANCE EVENTS SUBSYSTEM,
	open list:PERFORMANCE EVENTS SUBSYSTEM,
	open list:BPF [MISC]:Keyword:(?:b|_)bpf(?:b|_)

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:1687:9:
util/parse-events.c:3100:64: error: array subscript 'YYLTYPE[0]' is
partly outside array bounds of 'char[4]' [-Werror=array-bounds]
 3100 |                 .err_term  = loc_term ? loc_term->first_column :
0,
      |
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~
util/parse-events.c: In function 'parse_events_multi_pmu_add':
util/parse-events.c:1678:39: note: object 'config' of size 4
 1678 |                                 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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-09-29 19:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 19:18 [PATCH stable 6.1 0/2] perf build warnings fixes Florian Fainelli
2026-09-29 19:18 ` [PATCH stable 6.1 1/2] perf tools: Fix a asan issue in parse_events_multi_pmu_add() Florian Fainelli
2026-09-29 19:18 ` [PATCH stable 6.1 2/2] perf test bpf: Address error about non-null argument for epoll_pwait 2nd arg Florian Fainelli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®