drm/sun4i: tv: Include drm_atomic.h
PATCH 1/1 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.
--- drivers/gpu/drm/sun4i/sun4i_tv.c | 1 + 1 file changed, 1 insertion(+)
drivers/gpu/drm/sun4i/sun4i_tv.c +1 -0
@@ -14,6 +14,7 @@#include <linux/regmap.h> #include <linux/reset.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h>
Signature · 1 line
2.37.1
Quoted 11 lines · Maxime Ripard
Commit
ec491291dc94("drm/sun4i: tv: Mergemode_setintoatomic_enable") has introduced a call todrm_atomic_get_new_crtc_state(), but didn't includedrm_atomic.h.On
CONFIG_OFsystems, this is fine becausedrm_atomic.his included bydrm_of.hthroughdrm_bridge.h. However, wheneverCONFIG_OFisn't set, we end up with a compilation error.Fixes ec491291dc94 ("drm/sun4i: tv: Merge mode_set into atomic_enable")Reported-by Ville Syrjälä <[email protected]>Signed-off-by Maxime Ripard <[email protected]>
Also caught by the robot since then:
https://lists.freedesktop.org/archives/dri-devel/2022-September/371257.html
Quoted 18 lines
--- drivers/gpu/drm/sun4i/sun4i_tv.c | 1 + 1 file changed, 1 insertion(+)drivers/gpu/drm/sun4i/sun4i_tv.c +1
-0@@ -14,6 +14,7 @@#include <linux/regmap.h> #include <linux/reset.h> +#include <drm/drm_atomic.h> #include <drm/drm_atomic_helper.h> #include <drm/drm_of.h> #include <drm/drm_panel.h> Signature · 1 line
2.37.1
Signature · 2 lines
Ville Syrjälä Intel
Maxime Ripard
AppliedRe: (subset) [PATCH] drm/sun4i: tv: Include drm_atomic.h
In reply to Maxime RipardQuoted 9 lines · Maxime Ripard
Commit
ec491291dc94("drm/sun4i: tv: Mergemode_setintoatomic_enable") has introduced a call todrm_atomic_get_new_crtc_state(), but didn't includedrm_atomic.h.On
CONFIG_OFsystems, this is fine becausedrm_atomic.his included bydrm_of.hthroughdrm_bridge.h. However, wheneverCONFIG_OFisn't set, we end up with a compilation error.[...]
Applied to drm/drm-misc (drm-misc-next).
Thanks!
Maxime