<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">From f5e9c38169dc19ff64f32a38e4fdd3eef74df103 Mon Sep 17 00:00:00 2001
From: Maxime Ripard &lt;maxime@cerno.tech&gt;
Date: Mon, 28 Nov 2022 14:12:43 +0100
Subject: [PATCH] drm/tests: helpers: Move the helper header to
 include/drm

We'll need to use those helpers from drivers too, so let's move it to a
more visible location.

Reviewed-by: Javier Martinez Canillas &lt;javierm@redhat.com&gt;
Signed-off-by: Maxime Ripard &lt;maxime@cerno.tech&gt;
---
 drivers/gpu/drm/tests/drm_kunit_helpers.c                  | 3 +--
 {drivers/gpu/drm/tests =&gt; include/drm}/drm_kunit_helpers.h | 0
 2 files changed, 1 insertion(+), 2 deletions(-)
 rename {drivers/gpu/drm/tests =&gt; include/drm}/drm_kunit_helpers.h (100%)

--- a/drivers/gpu/drm/tests/drm_kunit_helpers.c
+++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c
@@ -1,14 +1,13 @@
 // SPDX-License-Identifier: GPL-2.0
 
 #include &lt;drm/drm_drv.h&gt;
+#include &lt;drm/drm_kunit_helpers.h&gt;
 #include &lt;drm/drm_managed.h&gt;
 
 #include &lt;kunit/resource.h&gt;
 
 #include &lt;linux/device.h&gt;
 
-#include "drm_kunit_helpers.h"
-
 struct kunit_dev {
 	struct drm_device base;
 };
--- a/drivers/gpu/drm/tests/drm_kunit_helpers.h
+++ /dev/null
@@ -1,11 +0,0 @@
-// SPDX-License-Identifier: GPL-2.0
-
-#ifndef DRM_KUNIT_HELPERS_H_
-#define DRM_KUNIT_HELPERS_H_
-
-struct drm_device;
-struct kunit;
-
-struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
-
-#endif // DRM_KUNIT_HELPERS_H_
--- /dev/null
+++ b/include/drm/drm_kunit_helpers.h
@@ -0,0 +1,11 @@
+// SPDX-License-Identifier: GPL-2.0
+
+#ifndef DRM_KUNIT_HELPERS_H_
+#define DRM_KUNIT_HELPERS_H_
+
+struct drm_device;
+struct kunit;
+
+struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
+
+#endif // DRM_KUNIT_HELPERS_H_
</pre></body></html>