From: Stephen Rothwell Subject: linux-next: build failure after merge of the drm-misc tree Date: Fri, 14 Jun 2019 14:41:33 +1000 Message-ID: <20190614144133.5dbea6bf@canb.auug.org.au> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0342211103==" Return-path: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" To: Daniel Vetter , Intel Graphics , DRI , Dave Airlie Cc: Sean Paul , Linux Next Mailing List , Linux Kernel Mailing List , Nicholas Kazlauskas List-Id: dri-devel@lists.freedesktop.org --===============0342211103== Content-Type: multipart/signed; micalg=pgp-sha256; boundary="Sig_//+.8RdugmHQfla=VfC_BGU/"; protocol="application/pgp-signature" --Sig_//+.8RdugmHQfla=VfC_BGU/ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, After merging the drm-misc tree, today's linux-next build (x86_64 allmodconfig) failed like this: drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4031:18: error:= initialization of 'int (*)(struct drm_connector *, struct drm_atomic_state= *)' from incompatible pointer type 'int (*)(struct drm_connector *, struct= drm_connector_state *)' [-Werror=3Dincompatible-pointer-types] .atomic_check =3D amdgpu_dm_connector_atomic_check, ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ drivers/gpu/drm/amd/amdgpu/../display/amdgpu_dm/amdgpu_dm.c:4031:18: note: = (near initialization for 'amdgpu_dm_connector_helper_funcs.atomic_check') Caused by commit 6f3b62781bbd ("drm: Convert connector_helper_funcs->atomic_check to accep= t drm_atomic_state") interacting with commit 88694af9e4d1 ("drm/amd/display: Expose HDR output metadata for supported = connectors") from the drm tree. I added the following merge fix patch: From: Stephen Rothwell Date: Fri, 14 Jun 2019 14:27:12 +1000 Subject: [PATCH] fixup for "drm: Convert connector_helper_funcs->atomic_che= ck to accept drm_atomic_state" Signed-off-by: Stephen Rothwell --- drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c b/drivers/gp= u/drm/amd/display/amdgpu_dm/amdgpu_dm.c index 413bf22e9585..b3a083c9a11c 100644 --- a/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c +++ b/drivers/gpu/drm/amd/display/amdgpu_dm/amdgpu_dm.c @@ -3976,9 +3976,10 @@ is_hdr_metadata_different(const struct drm_connector= _state *old_state, =20 static int amdgpu_dm_connector_atomic_check(struct drm_connector *conn, - struct drm_connector_state *new_con_state) + struct drm_atomic_state *state) { - struct drm_atomic_state *state =3D new_con_state->state; + struct drm_connector_state *new_con_state =3D + drm_atomic_get_new_connector_state(state, conn); struct drm_connector_state *old_con_state =3D drm_atomic_get_old_connector_state(state, conn); struct drm_crtc *crtc =3D new_con_state->crtc; --=20 2.20.1 --=20 Cheers, Stephen Rothwell --Sig_//+.8RdugmHQfla=VfC_BGU/ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAl0DJX0ACgkQAVBC80lX 0GxcLAgAljvrK6Ifl9wqiaYaz9OxA/w0ZH1f0ia1PUmQSyjwkPD5cYLtWrpvIjpy b9CuAwupRZuY8mjiygi/S0PMdUUEarl3/l2C2daY5BM5US23Vtt5g9g1LEmzbmru 6L0Ya+tmjHgq7K8hQBNnRShoZhG5k1C+Mx02WFQ+EacdaRdo6lmMRclMihGbeOGs JmBE+Q8M0xN8XLuhqWF4sm69DXCKMmojWDiYmhfGyd9XbhYHENIVFiyWHGSRlc3R 6zsyH+QENQIEo1/5c+UnAKRilOho8au0+aLfRxQh0Dg21Q5ytv4ii4DHu9n/R3VM KuEb7sBzmVu0AYkQnultJTy2cm6Nbg== =IVWq -----END PGP SIGNATURE----- --Sig_//+.8RdugmHQfla=VfC_BGU/-- --===============0342211103== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX18KZHJpLWRldmVs IG1haWxpbmcgbGlzdApkcmktZGV2ZWxAbGlzdHMuZnJlZWRlc2t0b3Aub3JnCmh0dHBzOi8vbGlz dHMuZnJlZWRlc2t0b3Aub3JnL21haWxtYW4vbGlzdGluZm8vZHJpLWRldmVs --===============0342211103==--