[PATCH 0/4] Fixes for gcc 16.0.1

Arnaldo Carvalho de Melo posted 4 patches 2 weeks, 3 days ago
tools/perf/builtin-trace.c     |  2 +-
tools/perf/tests/sw-clock.c    |  3 ++-
tools/perf/util/print-events.c | 15 ++++++---------
3 files changed, 9 insertions(+), 11 deletions(-)
[PATCH 0/4] Fixes for gcc 16.0.1
Posted by Arnaldo Carvalho de Melo 2 weeks, 3 days ago
From: Arnaldo Carvalho de Melo <acme@redhat.com>

Hi,

	A bunch of fixes for recent gcc versions,

- Arnaldo

Arnaldo Carvalho de Melo (4):
  perf tests sw-clock: Mark the volatile tmp variable as __maybe_unused
  perf trace: Deal with compiler const checks
  perf list: Don't write to const memory
  perf list: Signal changing const memory is ok

 tools/perf/builtin-trace.c     |  2 +-
 tools/perf/tests/sw-clock.c    |  3 ++-
 tools/perf/util/print-events.c | 15 ++++++---------
 3 files changed, 9 insertions(+), 11 deletions(-)

-- 
2.52.0
Re: [PATCH 0/4] Fixes for gcc 16.0.1
Posted by Ian Rogers 2 weeks, 3 days ago
On Tue, Jan 20, 2026 at 2:11 PM Arnaldo Carvalho de Melo
<acme@kernel.org> wrote:
>
> From: Arnaldo Carvalho de Melo <acme@redhat.com>
>
> Hi,
>
>         A bunch of fixes for recent gcc versions,
>
> - Arnaldo

Reviewed-by: Ian Rogers <irogers@google.com>

These look like the least bad resolutions to the new warnings, thanks!
Ian

> Arnaldo Carvalho de Melo (4):
>   perf tests sw-clock: Mark the volatile tmp variable as __maybe_unused
>   perf trace: Deal with compiler const checks
>   perf list: Don't write to const memory
>   perf list: Signal changing const memory is ok
>
>  tools/perf/builtin-trace.c     |  2 +-
>  tools/perf/tests/sw-clock.c    |  3 ++-
>  tools/perf/util/print-events.c | 15 ++++++---------
>  3 files changed, 9 insertions(+), 11 deletions(-)
>
> --
> 2.52.0
>
Re: [PATCH 0/4] Fixes for gcc 16.0.1
Posted by Arnaldo Carvalho de Melo 2 weeks, 3 days ago
On Tue, Jan 20, 2026 at 03:42:42PM -0800, Ian Rogers wrote:
> On Tue, Jan 20, 2026 at 2:11 PM Arnaldo Carvalho de Melo
> <acme@kernel.org> wrote:
> >
> > From: Arnaldo Carvalho de Melo <acme@redhat.com>
> >
> > Hi,
> >
> >         A bunch of fixes for recent gcc versions,
> >
> > - Arnaldo
> 
> Reviewed-by: Ian Rogers <irogers@google.com>
> 
> These look like the least bad resolutions to the new warnings, thanks!

Thanks!

- Arnaldo

> Ian