]> git.ipfire.org Git - thirdparty/elfutils.git/commit
PR32930 backends/: guard asm/perf_regs.h include
authorSerhei Makarov <serhei@serhei.io>
Mon, 5 May 2025 16:08:55 +0000 (12:08 -0400)
committerSerhei Makarov <serhei@serhei.io>
Tue, 6 May 2025 19:29:01 +0000 (15:29 -0400)
commitd05241ce690018548857199bd34d7734c7164679
treedf80f6c559e271e26eb0954d9ec4d23d3c14e5e6
parentc96c4fcd54c64678dbcf9e43b9a991362aa83106
PR32930 backends/: guard asm/perf_regs.h include

asm/perf_regs.h is an arch-specific linux include, not present on
architectures like hppa and m68k that lack perf_events support.

Only one place we need to fix; others already guard the include by
architecture, or use architecture-independent headers (e.g.
linux/perf_events.h).

* backends/libebl_PERF_FLAGS.h: Only include asm/perf_regs.h on
  architectures where we use it.

Signed-off-by: Serhei Makarov <serhei@serhei.io>
backends/libebl_PERF_FLAGS.h