Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp582400rwb; Thu, 6 Oct 2022 01:16:21 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7oEAMy5qWfmf4IWpvM09YmF4NLKGvnSSKaaQZFbWjZgkK1upzXJVdVcXQCFc+UwHDiTxtO X-Received: by 2002:a05:6402:450c:b0:443:6279:774f with SMTP id ez12-20020a056402450c00b004436279774fmr3502433edb.11.1665044180475; Thu, 06 Oct 2022 01:16:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1665044180; cv=none; d=google.com; s=arc-20160816; b=lgSp5NtcJybDeuvjzOaJ2UfMVLvsd7XYQaKmtkcr3fCx67igbaygRMgmDjnDQ+r5mL O9ebGSDlaBYhoQBTSGqo2EUoVYFuopGT8FHVXNQYxWGYDfB/Enmjhxmbvn5Otggh1J8V M2wo4f78CmRHQ4CUhboBbweSGWDkxSV6p1sKd7tVXkERF5ZcdZO85jl/6dbeKdkS5Zf2 pC8kHo0c9BqOebkXHWLQRib16qMATlsAWnhZtw/mC8IAFseaLjuhXbAoIeOwfe0M/gTJ ya/ZvidDM7rmNtwUA0r8GfBVwbP4EcO7snMjoVealn7ekObCZ3qHnyCzz4RGvK6kYh9A sJnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :subject:cc:to:from:date:dkim-signature; bh=31lYof3k6TiuWy0jh42ikNoE+6WvWJWGhXoZV4qiUiM=; b=s+FIhF5Hjuheuk4b68dLg2RJOxsjdbT+NyQDeyfd6pWZ9cbIe+V05VT8p7r4IlzjQI d6J4w8yD77Mo40jvCVl0QylYZNQ0HLDGbAH3skrvze4zNyw3deEA9tApur1cPmr8InX7 DbpBNANpWLzTmGTdiTRZ/B6Y9I5Q0ATu6PHt+jLEVm+Lhcr5lB7FShd8cvPW1ScQwROS 7+Ha9E11TzqPspX3TfBYyJAgenrHNvS/XLYGUQOw+C1yIZObYvGIFOs8v0a+qj6i9dQS SLskcbnn1+xCgGpcto7BPxLiGBvj74kDOrAjLyInfY1iWN7bDYRVf6NWELvFhy2cuOgh LyuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=ninumLr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id gb42-20020a170907962a00b0077d562462f5si16417768ejc.381.2022.10.06.01.15.54; Thu, 06 Oct 2022 01:16:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@canb.auug.org.au header.s=201702 header.b=ninumLr0; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230296AbiJFIMx (ORCPT + 99 others); Thu, 6 Oct 2022 04:12:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33796 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229633AbiJFIMw (ORCPT ); Thu, 6 Oct 2022 04:12:52 -0400 Received: from gandalf.ozlabs.org (gandalf.ozlabs.org [150.107.74.76]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 060794B4A7; Thu, 6 Oct 2022 01:12:50 -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 4MjkhH5jsHz4xFv; Thu, 6 Oct 2022 19:12:47 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canb.auug.org.au; s=201702; t=1665043968; bh=31lYof3k6TiuWy0jh42ikNoE+6WvWJWGhXoZV4qiUiM=; h=Date:From:To:Cc:Subject:In-Reply-To:References:From; b=ninumLr0iNSJyGMXf4X2E/vre60REOGPsV/mYzG6Nt4wZnsEKOK4BtU+gm/SRnwCJ edrp3BSvqVcDFCI+KDMCNg2CGaE92XHDfOlrn7CX6PYK+HwK6W9H6fx+IkBpq+6VQF mPpMfLna9jswtO1VCo7+/cWVHeP0EV7hrFtFbtGzmNsf/TF1qlm9zbfDN8vUyFNwcd 44n/lTks0r2Hj6/E5bC4KT08YaGnn7Fa01A/bFKpuZsD58jAA6xQL98mjVcfjDJM7/ qCn2RlxrWDoaq4POb2w/4O7QFlKVy5YrG2e7I3hItTy5RZZ8hCBoXxH6kyRG88mfcq dOc9g6a5R/BrA== Date: Thu, 6 Oct 2022 19:12:45 +1100 From: Stephen Rothwell To: David Airlie Cc: Hamza Mahfooz , Alex Deucher , Mark Brown , Linux Kernel Mailing List , DRI , Linux Next Mailing List , Aurabindo Pillai , Alex Deucher Subject: Re: linux-next: build failure after merge of the drm tree Message-ID: <20221006191245.11bb0e2c@canb.auug.org.au> In-Reply-To: <20221006092810.0c3a2238@canb.auug.org.au> References: <20220930105434.111407-1-broonie@kernel.org> <20221004132047.435d42db@canb.auug.org.au> <20221004140558.64f59f2c@canb.auug.org.au> <09cd11c5-2a15-3653-957c-88c751fa9029@amd.com> <20221006092810.0c3a2238@canb.auug.org.au> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="Sig_/fQ7FPaV88=DQ7b76DFZdCk_"; protocol="application/pgp-signature"; micalg=pgp-sha256 X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,SPF_HELO_PASS,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --Sig_/fQ7FPaV88=DQ7b76DFZdCk_ Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable Hi all, On Thu, 6 Oct 2022 09:28:10 +1100 Stephen Rothwell w= rote: > > I have applied the following hack for today: >=20 > From: Stephen Rothwell > Date: Thu, 6 Oct 2022 09:14:26 +1100 > Subject: [PATCH] fix up for drivers/gpu/drm/amd/display/dc/core/dc_stream= .c >=20 > Signed-off-by: Stephen Rothwell > --- > drivers/gpu/drm/amd/display/dc/core/dc_stream.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) >=20 > diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gp= u/drm/amd/display/dc/core/dc_stream.c > index ae13887756bf..a5da787b7876 100644 > --- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c > +++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c > @@ -520,9 +520,9 @@ bool dc_stream_remove_writeback(struct dc *dc, > } > =20 > /* remove writeback info for disabled writeback pipes from stream */ > - for (i =3D 0, j =3D 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i+= +) { > + for (i =3D 0, j =3D 0; i < stream->num_wb_info && i < MAX_DWB_PIPES; i+= +) { > if (stream->writeback_info[i].wb_enabled) { > - if (i !=3D j) > + if ((j >=3D 0) && (j < i)) > /* trim the array */ > stream->writeback_info[j] =3D stream->writeback_info[i]; > j++; This works as well, and (in my opinion) is better: diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c b/drivers/gpu/= drm/amd/display/dc/core/dc_stream.c index ae13887756bf..fb6222d4c430 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_stream.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_stream.c @@ -499,7 +499,7 @@ bool dc_stream_remove_writeback(struct dc *dc, struct dc_stream_state *stream, uint32_t dwb_pipe_inst) { - int i =3D 0, j =3D 0; + unsigned int i, j; if (stream =3D=3D NULL) { dm_error("DC: dc_stream is NULL!\n"); return false; @@ -520,9 +520,9 @@ bool dc_stream_remove_writeback(struct dc *dc, } =20 /* remove writeback info for disabled writeback pipes from stream */ - for (i =3D 0, j =3D 0; i < stream->num_wb_info && j < MAX_DWB_PIPES; i++)= { + for (i =3D 0, j =3D 0; i < stream->num_wb_info; i++) { if (stream->writeback_info[i].wb_enabled) { - if (i !=3D j) + if (j < i) /* trim the array */ stream->writeback_info[j] =3D stream->writeback_info[i]; j++; --=20 Cheers, Stephen Rothwell --Sig_/fQ7FPaV88=DQ7b76DFZdCk_ Content-Type: application/pgp-signature Content-Description: OpenPGP digital signature -----BEGIN PGP SIGNATURE----- iQEzBAEBCAAdFiEENIC96giZ81tWdLgKAVBC80lX0GwFAmM+jf0ACgkQAVBC80lX 0GyyIgf/WR7MxcXzbxhywbtkI+Sx+47sAft5hdECwLaEzF1auZ3Nv3xKH4yY79fR npO+OjDaVJ9YXdXXi/tpoBTMPfzFIwbcd0aGfGClO0OtJjDM2p0roXx64TMXM3f3 TIZjRXIyhRWZscBae7/M4iOgcrSJ5ac2fZB5j70pnuJi144QbQc0ttaGRiqdWgTJ 3c2UurXu2DJlSu2VvNXaID3NkvSF55mbonCYmuOhwy1yPqPZPnubMr0EBi36ztEM QB+LZ5XyvE7/Iyw320ImgsZMjenH1sphsOVukH48H6nMFBdwhX1bO8WHqB1PFO3u oGyN/rdPlSafTCucGLqFK19xsG0LHg== =Xs6o -----END PGP SIGNATURE----- --Sig_/fQ7FPaV88=DQ7b76DFZdCk_--