From patchwork Mon Oct 26 21:00:30 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 318990 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp996595ilc; Mon, 26 Oct 2020 14:01:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxBdkKeiI8T4dyEdkrD/LEDX77TqOyEEnjEttwa24DTSQMioG5HCeuJbYY1z9+EJKJ+8Z42 X-Received: by 2002:a17:902:8544:b029:d5:e680:1d23 with SMTP id d4-20020a1709028544b02900d5e6801d23mr14143254plo.46.1603746060202; Mon, 26 Oct 2020 14:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1603746060; cv=none; d=google.com; s=arc-20160816; b=H2JGWapl3IwMCVFz/elGI1FgCyk2h5YkfVfsoKD+125AIo0RizkcIkTNfqS43BLNTk 9LcNXhu9IjSrmxATdhMOysO3xz+mCFThvyFNOj6hgjAaO7qEJMzdqJTSD2vU6bXBbpN9 ap/HSvenmQH4ejhmZgfx/T/bnUSI9/o796jNih6ZaYHLUbKeuhmYjrcVcVhyrjFYVLNw dMc0Xr/bG5RGdkgylu7pkiMBuo7gFIvCyyw231xxUNBFhFFd6jNZr90AFW3BSUztbIfr rRCTqmI+bioVLZZixbb0l0fvEfAfjXS/eN9YGsX8lydyDVoBB4U3jNcZexGgyLwelAmr IG+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:cc:list-subscribe :list-help:list-post:list-archive:list-unsubscribe:list-id :precedence:mime-version:references:in-reply-to:message-id:date :subject:to:from:dkim-signature:delivered-to; bh=fX6zgbltyvubvahGQFlS9XXhXhdmABJyLL0ejRtdNIQ=; b=XL8hMo+IQz+iCa2jyUxWJecUoNRH1nYTHJdewSG3gMZmtBvfjGeZlU6byLNor7HVAf REsydJfRrNYDz9uIh3WZtIAJYa3mw70X/hl3zA7VA8bGU9WBQYKt9kjIXoZvYLT4YM8B VqPNjEDfG/XKyEH33k7pgSFBrVYXpynWMZMwVS5msyrApa+ys5NYDgSJbt63upogamk8 H6eyYnqE/1yh652OXt6xDvtgW3AVW2656b3NgfHkmITmT7PnX8KkMgUY0Gk32xpNQLul KnCdvHiFFh+sWsCzaoLYoZNIpzYqo6E2t0t8t4JMKW9nz/OH7WsFe4XZIyJALbX8HbH2 DsYw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=m822+6P8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id x136si6889196pgx.362.2020.10.26.14.00.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Oct 2020 14:01:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) client-ip=131.252.210.177; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@kernel.org header.s=default header.b=m822+6P8; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 131.252.210.177 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 3E2216E153; Mon, 26 Oct 2020 21:00:59 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by gabe.freedesktop.org (Postfix) with ESMTPS id 8A8456E153; Mon, 26 Oct 2020 21:00:58 +0000 (UTC) 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_K=C3=B6?= =?utf-8?q?nig?= , David Airlie , Daniel Vetter , David Galiffi , Jun Lei 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 X-BeenThere: dri-devel@lists.freedesktop.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Direct Rendering Infrastructure - Development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Martin Tsai , Arnd Bergmann , Rodrigo Siqueira , Wenjing Liu , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, Hersen Wu , dri-devel@lists.freedesktop.org, abdoulaye berthe , David Galiffi , jinlong zhang Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" 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(-) -- 2.27.0 _______________________________________________ dri-devel mailing list dri-devel@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/dri-devel 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 "