]> 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>
Mon, 5 May 2025 16:24:44 +0000 (12:24 -0400)
commit2c2bc3c5a00222251a4eb5f3fa58eb41413821d1
tree1a73bc42a75c7995ac5270555f96ab6911bf76b3
parent5a2a45c7d08d4edca9df9ebe4bc2ea7b08795c76
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.
backends/libebl_PERF_FLAGS.h