Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1599076ybb; Sat, 11 Apr 2020 07:19:52 -0700 (PDT) X-Google-Smtp-Source: APiQypJMhBoNws8cOJ9OorCpP3tWGRScSnFcbHn+DHq5WUGsA1mw8bmEKutEHp6QtxHdwJ6cdJ0v X-Received: by 2002:ad4:57ad:: with SMTP id g13mr844478qvx.89.1586614792688; Sat, 11 Apr 2020 07:19:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586614792; cv=none; d=google.com; s=arc-20160816; b=Cay+mqjVF6xw7foXBYGs26tbH00SEHDHI6VkiugodYZ3eQgZeRHYTzoCVWTO0Ci9Ij IXbcQAkK0lf6GLnIjyDDLzmMMFPFMODs/TBGV8nXYOyu4DbjFmtxNhKGFB4FnCgHPQ2G 1/bOwTrjmI6lqAOMNHLtT2QA9E9Io6LNoEO9c1EtS1ifXnPLxnavS1ddrTOUy5cgkcgW zKpmPIEN0JYl9D6zE7zuj6SCYDPUV54bhr6PS9lM0WArXwFF03Zp24cBYzD9qb7t61VL 7UnK/xPQOdkx+ZZwSLLGGk6yfDci84Eg/lRedWc+NnB761dSpmaSBKHrGycN39IIM6u9 /9Ag== 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 :message-id:date:subject:cc:to:from; bh=Bh+Ag0a3bSgZnYjiXvrEJm/uVkYaMt8XZRsyAVjAwFA=; b=brNTntWpC0aSldohREVjA1GEHoyw6oLJ8QbboeXa29OOAwoW3LFKgxJGYrqPtWQQo+ uFd+rMzXkn1onj0H73Cl8AAo6fhC22a3I/8psEi9BxSKsaXOTG0AQruvWzJhCs8jflVe A0ISalqwZDqHj+8o26zYN2cjoWqjacNGkPNbXkwpTdaIOHlhg+mGSg9TTPodiRgY0vIb /OLjoq+MbUmxeGoBFvHMLnZzwBUDJ1DJuVvitCKC6VXzPKY662VBwqlBvqonGpn2boyk RSNSHUXLi8ud0B04Fvm0Uj/EGmFbSeFtT+EMeG4BLpdElyoLDz+VpsGRZSVtFLcT5o3W iJ4A== ARC-Authentication-Results: i=1; mx.google.com; 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 i22si2698293qtp.390.2020.04.11.07.19.38; Sat, 11 Apr 2020 07:19:52 -0700 (PDT) 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; 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 S1726107AbgDKORW (ORCPT + 99 others); Sat, 11 Apr 2020 10:17:22 -0400 Received: from cmccmta3.chinamobile.com ([221.176.66.81]:10574 "EHLO cmccmta3.chinamobile.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726047AbgDKORW (ORCPT ); Sat, 11 Apr 2020 10:17:22 -0400 Received: from spf.mail.chinamobile.com (unknown[172.16.121.17]) by rmmx-syy-dmz-app12-12012 (RichMail) with SMTP id 2eec5e91d1238a0-15a2e; Sat, 11 Apr 2020 22:16:04 +0800 (CST) X-RM-TRANSID: 2eec5e91d1238a0-15a2e X-RM-TagInfo: emlType=0 X-RM-SPAM-FLAG: 00000000 Received: from localhost.localdomain (unknown[223.104.145.126]) by rmsmtp-syy-appsvr09-12009 (RichMail) with SMTP id 2ee95e91d12012a-e4cb7; Sat, 11 Apr 2020 22:16:03 +0800 (CST) X-RM-TRANSID: 2ee95e91d12012a-e4cb7 From: Tang Bin To: maarten.lankhorst@linux.intel.com, mripard@kernel.org, airlied@linux.ie, daniel@ffwll.ch Cc: dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, Tang Bin , Shengju Zhang Subject: [PATCH] drm/dp_mst: Fix drm_dp_mst_topology.c selftest compilation warning Date: Sat, 11 Apr 2020 22:17:40 +0800 Message-Id: <20200411141740.14584-1-tangbin@cmss.chinamobile.com> X-Mailer: git-send-email 2.20.1.windows.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The struct drm_dp_desc contains struct drm_dp_dpcd_ident, and the struct drm_dp_dpcd_ident contains the array, so zero-initialization requires a more couple of braces. In the ARM compiler environment, the compile warning pointing it out: drivers/gpu/drm/drm_dp_mst_topology.c: In function 'drm_dp_mst_dsc_aux_for_port': drivers/gpu/drm/drm_dp_mst_topology.c:5494:9: warning: missing braces around initializer [-Wmissing-braces] struct drm_dp_desc desc = { 0 }; Signed-off-by: Tang Bin Signed-off-by: Shengju Zhang --- drivers/gpu/drm/drm_dp_mst_topology.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpu/drm/drm_dp_mst_topology.c b/drivers/gpu/drm/drm_dp_mst_topology.c index 70c4b7a..4d8d1fd 100644 --- a/drivers/gpu/drm/drm_dp_mst_topology.c +++ b/drivers/gpu/drm/drm_dp_mst_topology.c @@ -5494,7 +5494,7 @@ struct drm_dp_aux *drm_dp_mst_dsc_aux_for_port(struct drm_dp_mst_port *port) { struct drm_dp_mst_port *immediate_upstream_port; struct drm_dp_mst_port *fec_port; - struct drm_dp_desc desc = { 0 }; + struct drm_dp_desc desc = { { { 0 } } }; u8 endpoint_fec; u8 endpoint_dsc; -- 2.7.4