projects
/
linux-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
49c9858
)
drm/tests: helpers: Include missing drm_drv header
author
Maxime Ripard
<mripard@kernel.org>
Thu, 22 Feb 2024 18:13:47 +0000
(19:13 +0100)
committer
Maxime Ripard
<mripard@kernel.org>
Wed, 28 Feb 2024 15:36:15 +0000
(16:36 +0100)
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
include/drm/drm_kunit_helpers.h
patch
|
blob
|
blame
|
history
diff --git
a/include/drm/drm_kunit_helpers.h
b/include/drm/drm_kunit_helpers.h
index ba483c87f0e7bd049b056c029b231e62ca535843..3ae19892229db22f4e9adbaabb68d599af6bf163 100644
(file)
--- 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>