* [PATCH 4/8] drm/rcar-du: fix merge conflict for state->alpha [not found] <20180525155030.3667352-1-arnd@arndb.de> @ 2018-05-25 15:50 ` Arnd Bergmann 2018-05-25 17:23 ` Laurent Pinchart 0 siblings, 1 reply; 2+ messages in thread From: Arnd Bergmann @ 2018-05-25 15:50 UTC (permalink / raw) To: Laurent Pinchart, David Airlie Cc: Arnd Bergmann, Kieran Bingham, Mauro Carvalho Chehab, Liviu Dudau, Daniel Vetter, dri-devel, linux-renesas-soc, linux-kernel The "alpha" struct member was removed in one commit but another user added in another, leading to a build failure: drivers/gpu/drm/rcar-du/rcar_du_vsp.c: In function 'rcar_du_vsp_plane_atomic_duplicate_state': drivers/gpu/drm/rcar-du/rcar_du_vsp.c:325:6: error: 'struct rcar_du_vsp_plane_state' has no member named 'alpha' copy->alpha = to_rcar_vsp_plane_state(plane->state)->alpha; This fixes up the merge by using the correct member. Fixes: 75a07f399cd4 ("drm: rcar-du: Zero-out sg_tables when duplicating plane state") Fixes: 301a9b8d5456 ("drm/rcar-du: Convert to the new generic alpha property") Signed-off-by: Arnd Bergmann <arnd@arndb.de> --- drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c index 4a98470626d5..d9232e749b6d 100644 --- a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c +++ b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c @@ -322,7 +322,7 @@ rcar_du_vsp_plane_atomic_duplicate_state(struct drm_plane *plane) return NULL; __drm_atomic_helper_plane_duplicate_state(plane, ©->state); - copy->alpha = to_rcar_vsp_plane_state(plane->state)->alpha; + copy->state.alpha = plane->state->alpha; return ©->state; } -- 2.9.0 ^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 4/8] drm/rcar-du: fix merge conflict for state->alpha 2018-05-25 15:50 ` [PATCH 4/8] drm/rcar-du: fix merge conflict for state->alpha Arnd Bergmann @ 2018-05-25 17:23 ` Laurent Pinchart 0 siblings, 0 replies; 2+ messages in thread From: Laurent Pinchart @ 2018-05-25 17:23 UTC (permalink / raw) To: Arnd Bergmann Cc: David Airlie, Kieran Bingham, Mauro Carvalho Chehab, Liviu Dudau, Daniel Vetter, dri-devel, linux-renesas-soc, linux-kernel Hi Arnd, Thank you for the patch. On Friday, 25 May 2018 18:50:11 EEST Arnd Bergmann wrote: > The "alpha" struct member was removed in one commit but another user > added in another, leading to a build failure: > > drivers/gpu/drm/rcar-du/rcar_du_vsp.c: In function > 'rcar_du_vsp_plane_atomic_duplicate_state': > drivers/gpu/drm/rcar-du/rcar_du_vsp.c:325:6: error: 'struct > rcar_du_vsp_plane_state' has no member named 'alpha' copy->alpha = > to_rcar_vsp_plane_state(plane->state)->alpha; > > This fixes up the merge by using the correct member. > > Fixes: 75a07f399cd4 ("drm: rcar-du: Zero-out sg_tables when duplicating > plane state") Fixes: 301a9b8d5456 ("drm/rcar-du: Convert to the new generic > alpha property") Signed-off-by: Arnd Bergmann <arnd@arndb.de> I have posted the same fix a week ago, see https://patchwork.freedesktop.org/ patch/msgid/20180515174752.28954-1-laurent.pinchart+renesas@ideasonboard.com. The patch is in Dave's master branch in commit 315852b422972e6ebb1dfddaadada09e46a2681a. > --- > drivers/gpu/drm/rcar-du/rcar_du_vsp.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c > b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c index 4a98470626d5..d9232e749b6d > 100644 > --- a/drivers/gpu/drm/rcar-du/rcar_du_vsp.c > +++ b/drivers/gpu/drm/rcar-du/rcar_du_vsp.c > @@ -322,7 +322,7 @@ rcar_du_vsp_plane_atomic_duplicate_state(struct > drm_plane *plane) return NULL; > > __drm_atomic_helper_plane_duplicate_state(plane, ©->state); > - copy->alpha = to_rcar_vsp_plane_state(plane->state)->alpha; > + copy->state.alpha = plane->state->alpha; > > return ©->state; > } -- Regards, Laurent Pinchart ^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-05-25 17:23 UTC | newest] Thread overview: 2+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- [not found] <20180525155030.3667352-1-arnd@arndb.de> 2018-05-25 15:50 ` [PATCH 4/8] drm/rcar-du: fix merge conflict for state->alpha Arnd Bergmann 2018-05-25 17:23 ` Laurent Pinchart
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for NNTP newsgroup(s).