2f8671c0e19996def34f62e61e721ce2443220d7
[openwrt/staging/blocktrron.git] /
1 From f5e9c38169dc19ff64f32a38e4fdd3eef74df103 Mon Sep 17 00:00:00 2001
2 From: Maxime Ripard <maxime@cerno.tech>
3 Date: Mon, 28 Nov 2022 14:12:43 +0100
4 Subject: [PATCH] drm/tests: helpers: Move the helper header to
5 include/drm
6
7 We'll need to use those helpers from drivers too, so let's move it to a
8 more visible location.
9
10 Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
11 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
12 ---
13 drivers/gpu/drm/tests/drm_kunit_helpers.c | 3 +--
14 {drivers/gpu/drm/tests => include/drm}/drm_kunit_helpers.h | 0
15 2 files changed, 1 insertion(+), 2 deletions(-)
16 rename {drivers/gpu/drm/tests => include/drm}/drm_kunit_helpers.h (100%)
17
18 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c
19 +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c
20 @@ -1,14 +1,13 @@
21 // SPDX-License-Identifier: GPL-2.0
22
23 #include <drm/drm_drv.h>
24 +#include <drm/drm_kunit_helpers.h>
25 #include <drm/drm_managed.h>
26
27 #include <kunit/resource.h>
28
29 #include <linux/device.h>
30
31 -#include "drm_kunit_helpers.h"
32 -
33 struct kunit_dev {
34 struct drm_device base;
35 };
36 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.h
37 +++ /dev/null
38 @@ -1,11 +0,0 @@
39 -// SPDX-License-Identifier: GPL-2.0
40 -
41 -#ifndef DRM_KUNIT_HELPERS_H_
42 -#define DRM_KUNIT_HELPERS_H_
43 -
44 -struct drm_device;
45 -struct kunit;
46 -
47 -struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
48 -
49 -#endif // DRM_KUNIT_HELPERS_H_
50 --- /dev/null
51 +++ b/include/drm/drm_kunit_helpers.h
52 @@ -0,0 +1,11 @@
53 +// SPDX-License-Identifier: GPL-2.0
54 +
55 +#ifndef DRM_KUNIT_HELPERS_H_
56 +#define DRM_KUNIT_HELPERS_H_
57 +
58 +struct drm_device;
59 +struct kunit;
60 +
61 +struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
62 +
63 +#endif // DRM_KUNIT_HELPERS_H_