summaryrefslogtreecommitdiffstats
path: root/include/drm/drm_kunit_helpers.h
diff options
context:
space:
mode:
authorMaxime Ripard <mripard@kernel.org>2024-02-22 19:13:47 +0100
committerMaxime Ripard <mripard@kernel.org>2024-02-28 16:36:15 +0100
commit73984daf07a1a89ace8f0db6dd2d640654ebbbee (patch)
treea6a3aeeb471294df722aa8dbd7953ffbf4c03266 /include/drm/drm_kunit_helpers.h
parentdrm/scheduler: Simplify the allocation of slab caches in drm_sched_fence_slab... (diff)
downloadlinux-73984daf07a1a89ace8f0db6dd2d640654ebbbee.tar.xz
linux-73984daf07a1a89ace8f0db6dd2d640654ebbbee.zip
drm/tests: helpers: Include missing drm_drv header
We have a few functions declared in our kunit helpers header, some of them dereferencing the struct drm_driver. However, we don't include the drm_drv.h header file defining that structure, leading to compilation errors if we don't include both headers. Fixes: d98780310719 ("drm/tests: helpers: Allow to pass a custom drm_driver") Reviewed-by: MaĆ­ra Canal <mcanal@igalia.com> Signed-off-by: Maxime Ripard <mripard@kernel.org> Link: https://patchwork.freedesktop.org/patch/msgid/20240222-kms-hdmi-connector-state-v7-1-8f4af575fce2@kernel.org
Diffstat (limited to 'include/drm/drm_kunit_helpers.h')
-rw-r--r--include/drm/drm_kunit_helpers.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/drm/drm_kunit_helpers.h b/include/drm/drm_kunit_helpers.h
index ba483c87f0e7..3ae19892229d 100644
--- a/include/drm/drm_kunit_helpers.h
+++ b/include/drm/drm_kunit_helpers.h
@@ -3,6 +3,8 @@
#ifndef DRM_KUNIT_HELPERS_H_
#define DRM_KUNIT_HELPERS_H_
+#include <drm/drm_drv.h>
+
#include <linux/device.h>
#include <kunit/test.h>