From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 12A54C433FE for ; Tue, 4 Oct 2022 03:06:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229451AbiJDDGK (ORCPT ); Mon, 3 Oct 2022 23:06:10 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55800 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229441AbiJDDGI (ORCPT ); Mon, 3 Oct 2022 23:06:08 -0400 Received: from gandalf.ozlabs.org (mail.ozlabs.org [IPv6:2404:9400:2221:ea00::3]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EBD812A967; Mon, 3 Oct 2022 20:06:05 -0700 (PDT) Received: from authenticated.ozlabs.org (localhost [127.0.0.1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mail.ozlabs.org (Postfix) with ESMTPSA id 4MhMzG5dmtz4wgr; Tue, 4 Oct 2022 14:06:02 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1664852764; bh=KaoAdFRv76b7rRGW35lgp7SYKID3xoN5gkoVTMtSlRc=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=LdhbgaLGFGjeJ9Paa6YlOKqyBJA7D/wyBWT0hd5TqpL9mE6SzbKU2RQPZ9izmMJ77 R2kNrwnBbXVaW5z669jBZqbqS2ylhn6C3HroymogBFqiAWtu9EMN/oJ2Hv25fiVGQF VCF/GHqflkMJw7S6f7e5v6Mw1xT+DLSoSeUuN11QJ4bwObdWNftsAsQE6crioJgRSb Fr5IrYYHRfGSEjV961+uHB1NMzlrIR191UIrR+SOOrxb0CxLLnMgRVb1GIeNw6YyQ4 F5v7V7ba/YzkauELSP1XGhrwl67SB42S5r89+xGZPvhiUkbRR1/KrdWwbDoMNDKNmc LHJTB+kGkP7Nw== Date: Tue, 4 Oct 2022 14:05:58 +1100 From: Stephen Rothwell To: David Airlie Cc: broonie@kernel.org, Lucas Stach , Aurabindo Pillai , Hamza Mahfooz , Alex Deucher , Linux Kernel Mailing List , Linux Next Mailing List , DRI Subject: Re: linux-next: build failure after merge of the drm tree Message-ID: <20221004140558.64f59f2c@canb.auug.org.au> In-Reply-To: References: <20220930105434.111407-1-broonie@kernel.org> <20221004132047.435d42db@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/zn3cNZXJ4akLAJ9548KNlKz"; protocol="application/pgp-signature"; micalg=pgp-sha256 Precedence: bulk List-ID: X-Mailing-List: linux-next@vger.kernel.org --Sig_/zn3cNZXJ4akLAJ9548KNlKz Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi Dave, On Tue, 4 Oct 2022 12:24:37 +1000 David Airlie wrote: > > On Tue, Oct 4, 2022 at 12:21 PM Stephen Rothwell w= rote: > > > > On Fri, 30 Sep 2022 11:54:34 +0100 broonie@kernel.org wrote: =20 > > > > > > After merging the drm tree, today's linux-next build (x86_64 > > > allmodconfig) failed like this: > > > > > > /tmp/next/build/drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stre= am.c: In function 'dc_stream_remove_writeback': > > > /tmp/next/build/drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stre= am.c:527:55: error: array subscript [0, 0] is outside array bounds of 'stru= ct dc_writeback_info[1]' [-Werror=3Darray-bounds] > > > 527 | stream->writeback_info[j] =3D stream->writeback_info[i]; > > > | ~~~~~~~~~~~~~~~~~~~~~~^~~ > > > cc1: all warnings being treated as errors > > > > > > Caused by > > > > > > 5d8c3e836fc224 ("drm/amd/display: fix array-bounds error in dc_st= ream_remove_writeback()") > > > > > > I have reverted that commit for today. =20 > > > > I am still getting this failure. The full error is: > > > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c: In function = 'dc_stream_remove_writeback': > > drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_stream.c:527:83: error= : array subscript [0, 0] is outside array bounds of 'struct dc_writeback_in= fo[1]' [-Werror=3Darray-bounds] > > 527 | stream->writeback_info[j] =3D s= tream->writeback_info[i]; > > | ~~~= ~~~~~~~~~~~~~~~~~~~^~~ > > In file included from drivers/gpu/drm/amd/amdgpu/../display/dc/dc.h:126= 9, > > from drivers/gpu/drm/amd/amdgpu/../display/dc/inc/core= _types.h:29, > > from drivers/gpu/drm/amd/amdgpu/../display/dc/basics/d= c_common.h:29, > > from drivers/gpu/drm/amd/amdgpu/../display/dc/core/dc_= stream.c:27: > > drivers/gpu/drm/amd/amdgpu/../display/dc/dc_stream.h:241:34: note: whil= e referencing 'writeback_info' > > 241 | struct dc_writeback_info writeback_info[MAX_DWB_PIPES]; > > | ^~~~~~~~~~~~~~ =20 >=20 > I'm not seeing it here, what gcc is this with? I am using an x86_64 cross compiler hosted on ppc64le - gcc v11.2.0 (on Debian). --=20 Cheers, Stephen Rothwell --Sig_/zn3cNZXJ4akLAJ9548KNlKz Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmM7oxYACgkQAVBC80lX 0GxCgwgAirX4hMjmK8WlBWOZCmyEx6ZfWt3FpSnRNI5RuL5GOSP/n7YCwjV7W4D/ i9qtIOBy/d7DUc1wGOm0zzmVFxA7gTTVbDzVIR/HM8Ua+Z0VLsaX4HtNpqnRQKiH 7YCTkzet6ZS5IuryLx+TGtdPdNvx+3U6b/alD1451o1D+gQAfiSMHBqEx0JFTvBE RMAAvce1RvIoKE2QMcjllgdUQOkHda2r0J2VChv6anK2WeLcfbGD0YFgvQP7B4P/ 5A09YflWT4c5/aToSwPpRD2wxpgRand7UB9D/1ces+R0aF1zH1Bi0HfNIezgcm8M qI1v4Xquw6YyBXKXfObTIj2bRyG/Rg== =jndg -----END PGP SIGNATURE----- --Sig_/zn3cNZXJ4akLAJ9548KNlKz--