Skip to contentSkip to conversation

drm/xlnx: Fix build failure due to missing include

PATCH In review Ville Syrjala 2 participants 3 messages Jun 21, 2022

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/xlnx: Fix build failure due to missing include

From: Ville Syrjälä <[email protected]>

Dropping drm_blend.h from drm_crtc.h broke the
xlnx driver. Make it build again by including
drm_blend.h from the driver directly.

My .config was missing some required dependencies so I never build tested it :/

Cc Hyun Kwon <[email protected]>
Cc Laurent Pinchart <[email protected]>
Fixes 90bb087f6674 ("drm: Drop drm_blend.h from drm_crtc.h")
---
 drivers/gpu/drm/xlnx/zynqmp_disp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/xlnx/zynqmp_disp.c +1 -0
index 11c409cbc88e..cc32aa89cf8f 100644
@@ -12,6 +12,7 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_atomic_uapi.h>
+#include <drm/drm_blend.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_device.h>
 #include <drm/drm_fb_cma_helper.h>
Signature · 1 line
2.35.1
maintainer Reviewed-by on v1 1/1
#1 lore raw

Hi Ville,

Thank you for the patch.

Quoted 6 lines · Ville Syrjala

From: Ville Syrjälä <[email protected]>

Dropping drm_blend.h from drm_crtc.h broke the
xlnx driver. Make it build again by including
drm_blend.h from the driver directly.

Quoted 8 lines

My .config was missing some required dependencies so I never build tested it :/

Cc Hyun Kwon <[email protected]>
Cc Laurent Pinchart <[email protected]>
Fixes 90bb087f6674 ("drm: Drop drm_blend.h from drm_crtc.h")
Quoted 16 lines
---
 drivers/gpu/drm/xlnx/zynqmp_disp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/xlnx/zynqmp_disp.c +1 -0
index 11c409cbc88e..cc32aa89cf8f 100644
@@ -12,6 +12,7 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_atomic_uapi.h>
+#include <drm/drm_blend.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_device.h>
 #include <drm/drm_fb_cma_helper.h>
Signature · 3 lines
Regards,

Laurent Pinchart
#2 lore raw
Quoted 14 lines · Laurent Pinchart

Hi Ville,

Thank you for the patch.

Quoted 9 lines · Ville Syrjala

From: Ville Syrjälä <[email protected]>

Dropping drm_blend.h from drm_crtc.h broke the
xlnx driver. Make it build again by including
drm_blend.h from the driver directly.

My .config was missing some required dependencies so I never build tested it :/

Quoted 7 lines
Quoted 5 lines
Cc Hyun Kwon <[email protected]>
Cc Laurent Pinchart <[email protected]>
Fixes 90bb087f6674 ("drm: Drop drm_blend.h from drm_crtc.h")

Thanks. Pushed to drm-misc-next.

Quoted 22 lines
Quoted 17 lines
---
 drivers/gpu/drm/xlnx/zynqmp_disp.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpu/drm/xlnx/zynqmp_disp.c +1 -0
index 11c409cbc88e..cc32aa89cf8f 100644
@@ -12,6 +12,7 @@
 #include <drm/drm_atomic.h>
 #include <drm/drm_atomic_helper.h>
 #include <drm/drm_atomic_uapi.h>
+#include <drm/drm_blend.h>
 #include <drm/drm_crtc.h>
 #include <drm/drm_device.h>
 #include <drm/drm_fb_cma_helper.h>
Signature · 3 lines
Regards,

Laurent Pinchart
Signature · 2 lines
Ville Syrjälä
Intel