[PATCH 5.12 005/677] coresight: etm-perf: Fix define build issue when built as module