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
7 We'll need to use those helpers from drivers too, so let's move it to a
10 Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
11 Signed-off-by: Maxime Ripard <maxime@cerno.tech>
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%)
18 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c
19 +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c
21 // SPDX-License-Identifier: GPL-2.0
23 #include <drm/drm_drv.h>
24 +#include <drm/drm_kunit_helpers.h>
25 #include <drm/drm_managed.h>
27 #include <kunit/resource.h>
29 #include <linux/device.h>
31 -#include "drm_kunit_helpers.h"
34 struct drm_device base;
36 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.h
39 -// SPDX-License-Identifier: GPL-2.0
41 -#ifndef DRM_KUNIT_HELPERS_H_
42 -#define DRM_KUNIT_HELPERS_H_
47 -struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
49 -#endif // DRM_KUNIT_HELPERS_H_
51 +++ b/include/drm/drm_kunit_helpers.h
53 +// SPDX-License-Identifier: GPL-2.0
55 +#ifndef DRM_KUNIT_HELPERS_H_
56 +#define DRM_KUNIT_HELPERS_H_
61 +struct drm_device *drm_kunit_device_init(struct kunit *test, u32 features, char *name);
63 +#endif // DRM_KUNIT_HELPERS_H_