summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2020-01-03 10:45:16 +0000
committerChris Wilson <chris@chris-wilson.co.uk>2020-01-03 13:33:36 +0000
commitb2fcaac98bbec6036d17a0a120a19b64e65f6534 (patch)
treeecc78cc3d433e032d0bc69be25ddf049baba542f /drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
parentf3bc632acbb33ac3d725a0248c99db3697b3bba1 (diff)
downloadblackbird-op-linux-b2fcaac98bbec6036d17a0a120a19b64e65f6534.tar.gz
blackbird-op-linux-b2fcaac98bbec6036d17a0a120a19b64e65f6534.zip
drm/i915/selftests: Make headers self-contained
Include the types used by the headers to they can be compiled standalone. 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/20200103104516.1757103-2-chris@chris-wilson.co.uk
Diffstat (limited to 'drivers/gpu/drm/i915/selftests/i915_mock_selftests.h')
-rw-r--r--drivers/gpu/drm/i915/selftests/i915_mock_selftests.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/drivers/gpu/drm/i915/selftests/i915_mock_selftests.h b/drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
index aa5a0e7f5d9e..5b39bab4da1d 100644
--- a/drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
+++ b/drivers/gpu/drm/i915/selftests/i915_mock_selftests.h
@@ -1,5 +1,11 @@
/* SPDX-License-Identifier: GPL-2.0 */
-/* List each unit test as selftest(name, function)
+
+#ifndef selftest
+#define selftest(x, y)
+#endif
+
+/*
+ * List each unit test as selftest(name, function)
*
* The name is used as both an enum and expanded as subtest__name to create
* a module parameter. It must be unique and legal for a C identifier.
OpenPOWER on IntegriCloud