diff options
author | Chris Wilson <[email protected]> | 2020-02-17 09:58:35 +0000 |
---|---|---|
committer | Chris Wilson <[email protected]> | 2020-02-17 11:42:10 +0000 |
commit | cf274daadd696170b2f6139a825430a1d8976b50 (patch) | |
tree | bf3e6f2f51c6029ffbf99abf70a72a9f3b7fa7ef /tools/perf/scripts/python/intel-pt-events.py | |
parent | c72e451e98c6f565106b7b005624fe4e2290a102 (diff) |
drm/i915/gt: Rearrange code to silence compiler
Without selftests enabled, I915_SELFTEST_ONLY becomes a dummy,
generating a bare '0'. This causes the compiler to complain about a
useless line, and while we could use I915_SELFTEST_DECLARE instead, it
is a bit messier. Move the selftest-only code to a helper and make that
conditional on having selftests enabled.
Reported-by: kbuild test robot <[email protected]>
Signed-off-by: Chris Wilson <[email protected]>
Reviewed-by: Matthew Auld <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'tools/perf/scripts/python/intel-pt-events.py')
0 files changed, 0 insertions, 0 deletions