Received: by 2002:a05:6a10:9e8c:0:0:0:0 with SMTP id y12csp617459pxx; Mon, 26 Oct 2020 17:03:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVcmhtKlgIhVtSBiQRcFEYjdoYJoqb9LHzUE0P8nlHEwiyobR5rAb84QoR/fdJsTbWDHt8 X-Received: by 2002:a17:907:435b:: with SMTP id oc19mr17416440ejb.311.1603757017497; Mon, 26 Oct 2020 17:03:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603757017; cv=none; d=google.com; s=arc-20160816; b=uNoO4dzv8z3DVu1MYbOquXmQg4Mc99yKBPqKxY3yaPp6UKd+5JI12GRn3IIgNr4kUy P5XSO+QJPEUoyVKL8GNtMQPsLDXi8+L6S2HIwl83gCU+6DiC3+PYqdIgK6tSLs9lb3AY kvM9GZbcV6tWbZH8+mSL+8Y4Yzx9xDxrBDUpEPzNB6yHxjp4kMf63NEki4azqzuzR1Cj EnfXMG+9hq6Qh68VDbaNK+/4U8hlPCQBgiCY6EFLYIgmHNTIeRJV9TAZHiywscEjRFqy dSy20gcE6ZeiFUgR3VYvgHvKsqIAtcG+Wv1pkP/f0vjV8s2jgGGtcW0Y488kdVIU8zzn yhLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=+xngKGrq1XhjpPo53srsp0eM+6EBNWZ+DuPbV8eBJPI=; b=ngALurjC9exHuxERDmlBn+fI9y6ZaFtq7I/tphihYLZuqt+1Tuk3SxlPBAdhqqn/My lfKGlrAe3nlKM14qbnUZPOQDMAtelwNefjOzJUpJjo/0UL2nxdFVYwD4CcdI288sIh58 J9QCGC46I8rPCEavvoSreBh8eeIvqlTYBYXRBREinHhFdMn5ZLPGg53SaGpBPpCH7bL1 hXiIxf1Geg21zg5D00er2XgWMJyXrnULJd55a/XtpSBzKQ2oha5nAZvMsGXKT2ddtV9m k4wqOXL+dYjdm4J8N+FjM41Kk7/rixcvAd9+Xok8VzmFSSHrz/XRcFR2+v1ZK6xmDBQv 8CCw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m822+6P8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id c93si7891836edf.452.2020.10.26.17.03.15; Mon, 26 Oct 2020 17:03:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=m822+6P8; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729117AbgJZVA7 (ORCPT + 99 others); Mon, 26 Oct 2020 17:00:59 -0400 Received: from mail.kernel.org ([198.145.29.99]:55104 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729082AbgJZVA6 (ORCPT ); Mon, 26 Oct 2020 17:00:58 -0400 Received: from localhost.localdomain (unknown [192.30.34.233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8461220829; Mon, 26 Oct 2020 21:00:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1603746058; bh=S+371Kp/IEcbCZF0KcUqWMaT3Ju144hq0HM9jkLGkDs=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=m822+6P8iDuJDuwAS8D18uBp61uaCDfIDuLAp2fLjHgite5aZ+kwFSZXL/9WSJORV /KkDjt9Sv5LhsK/XWztvak4Sib5HC6/58r74NMoQ96R8+oF9+xfg2U8GtbhYS1R72v /EA4cEBQEuTfqiLLEzJm1NYeo4s8FYevkp8lepRY= From: Arnd Bergmann To: Harry Wentland , Leo Li , Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , David Galiffi , Jun Lei Cc: Arnd Bergmann , Rodrigo Siqueira , Wenjing Liu , Aric Cyr , abdoulaye berthe , Hersen Wu , Martin Tsai , jinlong zhang , David Galiffi , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Subject: [PATCH 2/5] drm/amdgpu: fix incorrect enum type Date: Mon, 26 Oct 2020 22:00:30 +0100 Message-Id: <20201026210039.3884312-2-arnd@kernel.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20201026210039.3884312-1-arnd@kernel.org> References: <20201026210039.3884312-1-arnd@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann core_link_write_dpcd() returns enum dc_status, not ddc_result: display/dc/core/dc_link_dp.c: In function 'dp_set_panel_mode': display/dc/core/dc_link_dp.c:4237:11: warning: implicit conversion from 'enum dc_status' to 'enum ddc_result' [-Wenum-conversion] Avoid the warning by using the correct enum in the caller. Fixes: 0b226322434c ("drm/amd/display: Synchronous DisplayPort Link Training") Signed-off-by: Arnd Bergmann --- drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c index ff1e9963ec7a..98464886341f 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_link_dp.c @@ -4230,7 +4230,7 @@ void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) if (edp_config_set.bits.PANEL_MODE_EDP != panel_mode_edp) { - enum ddc_result result = DDC_RESULT_UNKNOWN; + enum dc_status result = DC_ERROR_UNEXPECTED; edp_config_set.bits.PANEL_MODE_EDP = panel_mode_edp; @@ -4240,7 +4240,7 @@ void dp_set_panel_mode(struct dc_link *link, enum dp_panel_mode panel_mode) &edp_config_set.raw, sizeof(edp_config_set.raw)); - ASSERT(result == DDC_RESULT_SUCESSFULL); + ASSERT(result == DC_OK); } } DC_LOG_DETECTION_DP_CAPS("Link: %d eDP panel mode supported: %d " -- 2.27.0