drm/i915/selftests: make mock_drm.h self-contained
authorJani Nikula <jani.nikula@intel.com>
Thu, 19 Dec 2019 15:56:51 +0000 (17:56 +0200)
committerJani Nikula <jani.nikula@intel.com>
Mon, 23 Dec 2019 10:38:43 +0000 (12:38 +0200)
Needs i915_drv.h because i915 gets dereferenced.

Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Masahiro Yamada <yamada.masahiro@socionext.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Jani Nikula <jani.nikula@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20191219155652.2666-2-jani.nikula@intel.com
drivers/gpu/drm/i915/selftests/mock_drm.h

index d7f49e149f0c067d32ee8db0d0df5d42fdb3c85f..9916b6f955260f6ecb742d4375cfdfbb90c929dd 100644 (file)
@@ -27,7 +27,8 @@
 
 #include <drm/drm_file.h>
 
-struct drm_i915_private;
+#include "i915_drv.h"
+
 struct drm_file;
 struct file;