From: Maxime Ripard Date: Fri, 9 Sep 2022 09:31:16 +0000 (+0200) Subject: drm/sun4i: tv: Include drm_atomic.h X-Git-Tag: v6.1-rc5~176^2~9^2~89 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e73f57b70a214ab730ac9c7910b85ad372841673;p=platform%2Fkernel%2Flinux-starfive.git drm/sun4i: tv: Include drm_atomic.h Commit ec491291dc94 ("drm/sun4i: tv: Merge mode_set into atomic_enable") has introduced a call to drm_atomic_get_new_crtc_state(), but didn't include drm_atomic.h. On CONFIG_OF systems, this is fine because drm_atomic.h is included by drm_of.h through drm_bridge.h. However, whenever CONFIG_OF isn't set, we end up with a compilation error. Fixes: ec491291dc94 ("drm/sun4i: tv: Merge mode_set into atomic_enable") Reported-by: kernel test robot Reported-by: Ville Syrjälä Reviewed-by: Ville Syrjälä Signed-off-by: Maxime Ripard Link: https://patchwork.freedesktop.org/patch/msgid/20220909093116.4141982-1-maxime@cerno.tech --- diff --git a/drivers/gpu/drm/sun4i/sun4i_tv.c b/drivers/gpu/drm/sun4i/sun4i_tv.c index 74ff5ad6a8b9..c65f0a89b6b0 100644 --- a/drivers/gpu/drm/sun4i/sun4i_tv.c +++ b/drivers/gpu/drm/sun4i/sun4i_tv.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include