All of lore.kernel.org
 help / color / mirror / Atom feed
* drm_dp_mst_topology.c and old compilers
@ 2020-02-20  0:42 ` Paul E. McKenney
  0 siblings, 0 replies; 11+ messages in thread
From: Paul E. McKenney @ 2020-02-20  0:42 UTC (permalink / raw)
  To: maarten.lankhorst, mripard, airlied, daniel; +Cc: linux-kernel, dri-devel

Hello!

A box with GCC 4.8.3 compiler didn't like drm_dp_mst_topology.c.  The
following (lightly tested) patch makes it happy and seems OK for newer
compilers as well.

Is this of interest?

							Thanx, Paul

-----------------------------------------------------------------------

diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c
index 20cdaf3..232408a 100644
--- a/drivers/gpu/drm/drm_dp_mst_topology.c
+++ b/drivers/gpu/drm/drm_dp_mst_topology.c
@@ -5396,7 +5396,7 @@ struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port)
 {
 	struct drm_dp_mst_port *immediate_upstream_port;
 	struct drm_dp_mst_port *fec_port;
-	struct drm_dp_desc desc = { 0 };
+	struct drm_dp_desc desc = {{{ 0 }}};
 	u8 endpoint_fec;
 	u8 endpoint_dsc;
 
_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-02-20 18:36 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-20  0:42 drm_dp_mst_topology.c and old compilers Paul E. McKenney
2020-02-20  0:42 ` Paul E. McKenney
2020-02-20  2:52 ` Alex Deucher
2020-02-20  2:52   ` Alex Deucher
2020-02-20  7:58   ` Chris Wilson
2020-02-20  7:58     ` Chris Wilson
2020-02-20 18:36     ` Paul E. McKenney
2020-02-20 18:36       ` Paul E. McKenney
2020-02-20 11:59 ` Joe Perches
2020-02-20 11:59   ` Joe Perches
2020-02-20 15:07 ` Christoph Hellwig

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.