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 <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
1 parent 49c9858 commit 73984da

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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)