Skip to content

intel/perf: Move sysmacros.h include from header to implementation

Renato Pereyra requested to merge renatopereyra/mesa:sysmacros into main
intel/perf: Move sysmacros.h include from header to implementation

sysmacros.h defines macros `minor()` and `major()`. These macros conflict
with a defination of `minor()` in the Perfetto SDK header. Move the
sysmacros.h include to intel_perf.c because the Perfetto header is only
included at the same time as intel_perf.h not *.c (in intel_driver_ds.cc).

Unbeknown to anyone, the definition of `minor()` in the Perfetto header is
being replaced with the macro contents. See the MR attachment.

minor_macro_test_case.txt

Merge request reports