Skip to content

Commit 1752f13

Browse files
mripardairlied
authored andcommitted
drm/sun4i: hdmi: Add missing drm_atomic header
Commit 358e76f ("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 <airlied@redhat.com> Reported-by: kernel test robot <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202402291942.zVb1Vx4Y-lkp@intel.com/ Fixes: 358e76f ("drm/sun4i: hdmi: Consolidate atomic_check and mode_valid") Signed-off-by: Maxime Ripard <mripard@kernel.org> Signed-off-by: Dave Airlie <airlied@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20240301080249.823067-1-mripard@kernel.org
1 parent 7781cc4 commit 1752f13

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/gpu/drm/sun4i/sun4i_hdmi_enc.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#include <linux/regmap.h>
1717
#include <linux/reset.h>
1818

19+
#include <drm/drm_atomic.h>
1920
#include <drm/drm_atomic_helper.h>
2021
#include <drm/drm_edid.h>
2122
#include <drm/drm_encoder.h>

0 commit comments

Comments
 (0)