Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp9076420pxu; Mon, 28 Dec 2020 06:05:49 -0800 (PST) X-Google-Smtp-Source: ABdhPJy5hdP3Dwd2bV57ixIiNR6TZMn+V+q8LAaIeqFM1AJkR/+f7siMD3t2C/DPDezSVQhXf3hc X-Received: by 2002:a17:907:118e:: with SMTP id uz14mr40589996ejb.83.1609164349148; Mon, 28 Dec 2020 06:05:49 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1609164349; cv=none; d=google.com; s=arc-20160816; b=zPaNV23QJBYVIhW3VJe0EsUWXseNgvHeQEAUB8tPZfNdbjN8+0h4AhBkKrQ2WQnHaU hKmBVGTLjif5ApmcCCqQICjgFpYXSGNo+nmaz+2VlgwvWaRbTbgy4YCqD31GoOh06Z38 FmfhBYAmiI8XQLJafEiueoUsOs9Cj5GAw1X2rlxLyjs0h7rCSV3AxJAJuxPKq4ayhAbc ZzkR55q1qaoIdRUr1zr7tDf9Yp3uAE2/fZ0Kk3TWxpXLUMT14Kz4LeYR+0nUznHH+oZ3 YUxaLVipojpO+l+3h5lXI2AvpAEMmbmQYzKqzd/JVvdw2oBSxeHlKxW+DlwicU31WXmK WF7Q== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=yNMfHFuHzGY/XNzRimAcgcTEQkFPif1mff5XG83oHvM=; b=t4/rC1q+UDgGWgDMZfhdja6fPdhY931w+tv2ze/h9/GdoTjDvcVXpAmvwYK531sIgY qTnpPrELdDJ9ynVUorAeaI6SuedYXWzp9wnYJ/CiUpeeWztT3tiV4DdIJ8oTegV3MGtG a3rg1Y7LPkjLUJXwJETXkq5kYs16ZvA1S297OMAuSYNgSS8SmYhLZxHoTwQuZnJv6TEI eDbRoHXpioyrXvIEtadXck/wPjEkBQmg2C24WBzRcpfq68YJOTb2RPZk4wuV8NXGwRfb aawJHW1BWFz+NIvaZWua+lmx2599ypoPa2Mh+A2hQJXN91zNmlP1K+/QbfBBCzmZP4ox G2qw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=lVmVsWYX; 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=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id 97si21053961edr.112.2020.12.28.06.05.25; Mon, 28 Dec 2020 06:05:49 -0800 (PST) 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=@linuxfoundation.org header.s=korg header.b=lVmVsWYX; 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=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2391612AbgL1ODI (ORCPT + 99 others); Mon, 28 Dec 2020 09:03:08 -0500 Received: from mail.kernel.org ([198.145.29.99]:34824 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2408113AbgL1OBE (ORCPT ); Mon, 28 Dec 2020 09:01:04 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 8249320731; Mon, 28 Dec 2020 14:00:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1609164024; bh=SNTOy0mjLmWHH41mZ8P0m4Xdp3Z04OtVMhmCLIbNqyk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=lVmVsWYXpFtKkRxx3yygKKKVMPstLegz3eLnFVUXFXOByIqu9mx5L2G2LUJlo9rt8 viE/lpEHYocrZIKERYR1iuOzMaSWeSUXHKzd8zxx9VFeVZ3UtH4StZ8Gyp7ozP4UYb yeHCUE2YU3YkoLFTa8HpriDYdT/c7RmJIgS3og7Y= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Alex Deucher , Sasha Levin Subject: [PATCH 5.10 033/717] drm/amdgpu: fix incorrect enum type Date: Mon, 28 Dec 2020 13:40:31 +0100 Message-Id: <20201228125022.577457558@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201228125020.963311703@linuxfoundation.org> References: <20201228125020.963311703@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Arnd Bergmann [ Upstream commit a110f3750bf8b93764f13bd1402c7cba03d15d61 ] 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 Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- 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 ff1e9963ec7a2..98464886341f6 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