From 1752f138b28d1a1b50830e43bfce1070a368699e Mon Sep 17 00:00:00 2001 From: Maxime Ripard Date: Fri, 1 Mar 2024 09:02:49 +0100 Subject: drm/sun4i: hdmi: Add missing drm_atomic header Commit 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") added a call to drm_atomic_get_new_connector_state() but didn't include drm_atomic.h which defines it. On some configuration, this leads to a build failure, presumably because in the common case the header gets included by an intermediate header but it isn't always the case. Let's add a proper include. Reported-by: Dave Airlie Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202402291942.zVb1Vx4Y-lkp@intel.com/ Fixes: 358e76fd613a ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") Signed-off-by: Maxime Ripard Signed-off-by: Dave Airlie Link: https://patchwork.freedesktop.org/patch/msgid/20240301080249.823067-1-mripard@kernel.org --- drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c | 1 + 1 file changed, 1 insertion(+) (limited to 'drivers/gpu/drm/sun4i') diff --git a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c index b7cf369b1906..69001a3dc0df 100644 --- a/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c +++ b/drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c @@ -16,6 +16,7 @@ #include #include +#include #include #include #include -- cgit v1.2.3-73-gaa49b