On Wed, 12 Dec 2018 13:44:13 +0200 Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> wrote: > Fix compilation issue with CONFIG_DRM_AMDGPU on: > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c: In function ‘amdgpu_dm_mode_config_init’: > drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:1666:30: error: passing argument 1 of ‘drm_atomic_private_obj_init’ from incompatible pointer type > > Fixes: b962a12050a3 ("drm/atomic: integrate modeset lock with private objects") > Cc: Rob Clark <robdclark@xxxxxxxxx> > Cc: Boris Brezillon <boris.brezillon@xxxxxxxxxxx> Reviewed-by: Boris Brezillon <boris.brezillon@xxxxxxxxxxx> And sorry for the mess :-/. > Cc: Daniel Vetter <daniel.vetter@xxxxxxxx> > Cc: Tomi Sarvela <tomi.p.sarvela@xxxxxxxxx> > Signed-off-by: Mika Kuoppala <mika.kuoppala@xxxxxxxxxxxxxxx> > --- > drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > index 1691864bf59b..fd3ed2ce9cb1 100644 > --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c > @@ -1663,7 +1663,8 @@ static int amdgpu_dm_mode_config_init(struct amdgpu_device *adev) > > dc_resource_state_copy_construct_current(adev->dm.dc, state->context); > > - drm_atomic_private_obj_init(&adev->dm.atomic_obj, > + drm_atomic_private_obj_init(adev->ddev, > + &adev->dm.atomic_obj, > &state->base, > &dm_atomic_state_funcs); > _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx https://lists.freedesktop.org/mailman/listinfo/intel-gfx