Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp13473637ybl; Sun, 29 Dec 2019 12:45:54 -0800 (PST) X-Google-Smtp-Source: APXvYqxVB8A98PSInK0iyt1ZaNR97bRr87FTzNpDRJNWRp+KMT9ll9n0L1SxgQaP4ep3DH1ncKxq X-Received: by 2002:a9d:7cd0:: with SMTP id r16mr73248453otn.50.1577652354439; Sun, 29 Dec 2019 12:45:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1577652354; cv=none; d=google.com; s=arc-20160816; b=j/eT5R1hMtGfHqXKxjpP1o5vSYmBQAOUcoSlQlxnk+ZQfsqEICQZxBWt8ylybD/bDt QigU1dl93x3ew9lmVRlMvqEhX8DAnA1tLJ8cIQghBAah20jrpqwnewTZYNRWFhkWngVI gZOh9sm5NFz230ZjAR1YKaANRC1Z2N/wy6HYIOCLbwDdwL7CNbOi7IRzyDCBQ/y0xKj9 2IkDqqTs7dxE6cPy8etgAH+7HSTnvECNsvLRaI+U4NQ09GEarmt6QRVV6PquZao8sbdr ran2LHg6I0AQhCM1Tx1mZfXxg1rli+ByIyabZk0SeIfuF/fJkeRvxUjUzQ19gGggGX/0 7OXQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=x+OlFZN0Mm3qGEcT2Qpj8cU2e8bLWIoZRpSlXazy1lg=; b=UvU48EUEjXsIWvO/2zJNF7c3wxn3RpPXZhFbm858OZ3umwRyL20lh1UhqBZyyKwUn4 Axq4B3JMhJ4gt8Li5HGLKvlUgB5l/Xqt/efl9wRqw5oOQZWNME426CiOktFmZMWjZuHZ sEwhuMO4XV/P5JY20pjNXg+Z6eACr66iH4O5gN8sbRyh5l+M8M3fht1MWN86dFC7dmWG Ibv+7QCLYVZDjy6Ui5WcNYXWb4cPYl0WbGqlfSbq1G4DtpNloS3gJC1TlnI4+3g7oJHc jyDJAQMc2cIQZMGlfKtXm9wULltEEGL7I5Q4Cbf1qErcZx0a4dj0ujswiAz6mQReyDAY wR3A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a5EmOQQQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a10si6178125oid.84.2019.12.29.12.45.43; Sun, 29 Dec 2019 12:45:54 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=a5EmOQQQ; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730907AbfL2Rp2 (ORCPT + 99 others); Sun, 29 Dec 2019 12:45:28 -0500 Received: from mail.kernel.org ([198.145.29.99]:54532 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730901AbfL2Rp0 (ORCPT ); Sun, 29 Dec 2019 12:45:26 -0500 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 86947206A4; Sun, 29 Dec 2019 17:45:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1577641526; bh=/+a2iRJ9NHIO8tf39rt52D+4AhivlCFfPm+5SjMDWoQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=a5EmOQQQkuJ/Radq8Hs5rSGqDUjJPQIv1pFfH1Uc8pzFyO82v+zpW/WXFz578+lH0 Op2kNfWGMS2aD4mlKmmDGGSHVjTXRvDdKat+UjExxqZNxJKsXy2jYr/tHAjXRlaA3D dvq08S51CBEBGYeeOvaLXiWD8kWjrnFFZIeZuZcc= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Raul E Rangel , Alex Deucher , Sasha Levin Subject: [PATCH 5.4 100/434] drm/amd/display: fix struct init in update_bounding_box Date: Sun, 29 Dec 2019 18:22:33 +0100 Message-Id: <20191229172708.239102756@linuxfoundation.org> X-Mailer: git-send-email 2.24.1 In-Reply-To: <20191229172702.393141737@linuxfoundation.org> References: <20191229172702.393141737@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Raul E Rangel [ Upstream commit 960b6f4f2d2e96d5f7ffe2854e0040b46cafbd36 ] dcn20_resource.c:2636:9: error: missing braces around initializer [-Werror=missing-braces] struct _vcs_dpi_voltage_scaling_st calculated_states[MAX_CLOCK_LIMIT_STATES] = {0}; ^ Fixes: 7ed4e6352c16f ("drm/amd/display: Add DCN2 HW Sequencer and Resource") Signed-off-by: Raul E Rangel Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c index ebe67c34dabf..78b2cc2e122f 100644 --- a/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dcn20/dcn20_resource.c @@ -3041,7 +3041,7 @@ static void cap_soc_clocks( static void update_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_st *bb, struct pp_smu_nv_clock_table *max_clocks, unsigned int *uclk_states, unsigned int num_states) { - struct _vcs_dpi_voltage_scaling_st calculated_states[MAX_CLOCK_LIMIT_STATES] = {0}; + struct _vcs_dpi_voltage_scaling_st calculated_states[MAX_CLOCK_LIMIT_STATES]; int i; int num_calculated_states = 0; int min_dcfclk = 0; @@ -3049,6 +3049,8 @@ static void update_bounding_box(struct dc *dc, struct _vcs_dpi_soc_bounding_box_ if (num_states == 0) return; + memset(calculated_states, 0, sizeof(calculated_states)); + if (dc->bb_overrides.min_dcfclk_mhz > 0) min_dcfclk = dc->bb_overrides.min_dcfclk_mhz; else -- 2.20.1