Skip to content

Commit 73984da

Browse files
committed
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: d987803 ("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
1 parent 49c9858 commit 73984da

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

include/drm/drm_kunit_helpers.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33
#ifndef DRM_KUNIT_HELPERS_H_
44
#define DRM_KUNIT_HELPERS_H_
55

6+
#include <drm/drm_drv.h>
7+
68
#include <linux/device.h>
79

810
#include <kunit/test.h>

0 commit comments

Comments
 (0)