diff options
author | Chris Wilson <chris@chris-wilson.co.uk> | 2020-02-17 09:58:35 +0000 |
---|---|---|
committer | Chris Wilson <chris@chris-wilson.co.uk> | 2020-02-17 11:42:10 +0000 |
commit | cf274daadd696170b2f6139a825430a1d8976b50 (patch) | |
tree | bf3e6f2f51c6029ffbf99abf70a72a9f3b7fa7ef /scripts/bpf_helpers_doc.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 <lkp@intel.com>
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Matthew Auld <matthew.auld@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200217095835.599827-1-chris@chris-wilson.co.uk
Diffstat (limited to 'scripts/bpf_helpers_doc.py')
0 files changed, 0 insertions, 0 deletions