From patchwork Mon Jan 11 19:18:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 360536 Delivered-To: patch@linaro.org Received: by 2002:a02:85a7:0:0:0:0:0 with SMTP id d36csp3139247jai; Mon, 11 Jan 2021 11:19:43 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMR1PPhtfzDPw3T2EP4kpUiLLFub/q1cYrrlaOuJEx0BBjK0GiMbezAjpO88GTHQ3yKjce X-Received: by 2002:a63:5701:: with SMTP id l1mr965057pgb.381.1610392783040; Mon, 11 Jan 2021 11:19:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610392783; cv=none; d=google.com; s=arc-20160816; b=zpG0C/uAa2Jh8mkbulpmG53UWRQO7tdhUn4T7EKAkN/wgSHqN6AWHyo0xK99jekQr3 ZMNAV3eI9XvX9Prv4U7TgqPWWsOGy5XbunCDNplO8u28Iy1kInOuZEavvq1UPiOG60/S rKBjnEz+SKngCLabv/Qt9+HH04UFor/DsE8hkga1PyKKlvAC5DFSM232GUQS2eDKNKhp 1QgQuN3YOgFdpp4stlIuSM9iX7jDac6zwd0EZgvP2AoMmc++I1zUHdbInPENHmotjnK7 NXUcNd+lvzyMnEPCPbYZTAsv65tKZC8cBEe4ezuVuA9kxkyv1FW6kWFaABptmsr1TWxR z4Wg== 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=fYpIWd6JHh2XNFF0JcfAD0Wy0f/MFFgDnB9mATk8JO8=; b=0Je4nJ1SYqpJEISaPxRcOsuQf/tpHpORdiTpputJNXdeReRrCpNO9yLEHfcgtNeye5 HGQ4PBzYkcgVh3hgYJ/fl7nPmvi/RHOyXUOb/IZxVeWbDCd9HjcRFRQwF6g6TCUjCoFS jnPlywxDfRYa33qZWGjvCyAQKKxGDUAM0vXN/b0p8WBvU/1Uo50eXSQxdx3Un1uAuH7p N0lnyFwSpQKYl9w/J72Imne7oPf0yznHBykmgSUgLVCoQe+W4gMNEQ/uFUwPUlnNK7n9 FNeD58Knex5nB4zEhZAxOXJ+2bAvF934TJLjafGcy7Kup9MrtmvXNu17JoBjJsxN/b0U rBNg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uEgsGHtL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id 71si574352plf.436.2021.01.11.11.19.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=uEgsGHtL; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) smtp.mailfrom=dri-devel-bounces@lists.freedesktop.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id E45E989DD3; Mon, 11 Jan 2021 19:19:35 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x32f.google.com (mail-wm1-x32f.google.com [IPv6:2a00:1450:4864:20::32f]) by gabe.freedesktop.org (Postfix) with ESMTPS id 6F3A489DC7 for ; Mon, 11 Jan 2021 19:19:34 +0000 (UTC) Received: by mail-wm1-x32f.google.com with SMTP id c124so232575wma.5 for ; Mon, 11 Jan 2021 11:19:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=GBLSZTPS8qk7rY11VgJobcJSdYVa2Sl7IRQcchF4a+M=; b=uEgsGHtL1R1LmYWVtAlgWHzqWKe0ZR0/dvXOMx1Xo/D9OSPyNzU/zd67KNHNnXjLmU 8O0UZGjC0CM0GHTEdGIku+WcS9c1+U5hUQSbQuQUPCxycEj3Myn+Vs38kxAq1kgCAhiD VHVhw7sfXF+XNDVKGVTfRfCJmDgZXho3+G9/t3Z7M4qXJ4jEQ+ubQ/OLOMiwLn9dyARp 55Q/M5kPLPxlEbf1QZHnHJahZKiI92+p4ljKzbsWOgE4e9Rh2sf9R4dq+1nO/Uoa1zrF i6zsr74q+nNxm7ILEhqR/DZrAjHLJXfqnTtzjMiUPSvBGYEUMzxoclZAbim4ZL55781t C4+w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=GBLSZTPS8qk7rY11VgJobcJSdYVa2Sl7IRQcchF4a+M=; b=rRqLIcYUq9pgCX+/whJ5aKKde2TA+W+OVp10raiKlyxDolJam9X4WfMklNI+IgBCes iQlxTXDc6nLz5M6ZDL26J1vm/Rhubra/kN/0DOKQP6hWayrXRQMN1QEEx+qiMeb9kaKK kf9cFghgUJbJXhHEHclZuLNgjmMLtoAYb2gPV6rHMBlakG/1oQIXdXeZe/1FlrtYjylu 2BgzUS8uarXYMAzFT0S0OYeToCAymLiEFkJyOWWEAb2CPDf72M7VRxrG0uPU/hgLoFIp 9UtDTR7FHvgwqoVFrpAvUr4wV68BQHNKE+DC2KexONu2PhePlABNeHO4TUaOcrhWjPEV 7nSg== X-Gm-Message-State: AOAM531QZ8E0hlS5yC+wAQTcbAq6g/q1Swh7fshANAILlp44rNQ0+dB3 1ZO0evU8EOK5jl8bdBo0ueAUgw== X-Received: by 2002:a7b:c0c8:: with SMTP id s8mr259768wmh.123.1610392773083; Mon, 11 Jan 2021 11:19:33 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id n3sm778090wrw.61.2021.01.11.11.19.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Jan 2021 11:19:32 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/40] drm/amd/display/dc/dce/dce_link_encoder: Remove unused variable 'value0' Date: Mon, 11 Jan 2021 19:18:48 +0000 Message-Id: <20210111191926.3688443-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210111191926.3688443-1-lee.jones@linaro.org> References: <20210111191926.3688443-1-lee.jones@linaro.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: Leo Li , Mauro Rossi , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, David Airlie , dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c: In function ‘dce110_link_encoder_update_mst_stream_allocation_table’: drivers/gpu/drm/amd/amdgpu/../display/dc/dce/dce_link_encoder.c:1506:11: warning: variable ‘value0’ set but not used [-Wunused-but-set-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Mauro Rossi Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c index 0ef2f4d9d8bf3..1e77ffee71b30 100644 --- a/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c +++ b/drivers/gpu/drm/amd/display/dc/dce/dce_link_encoder.c @@ -1503,7 +1503,6 @@ void dce110_link_encoder_update_mst_stream_allocation_table( const struct link_mst_stream_allocation_table *table) { struct dce110_link_encoder *enc110 = TO_DCE110_LINK_ENC(enc); - uint32_t value0 = 0; uint32_t value1 = 0; uint32_t value2 = 0; uint32_t slots = 0; @@ -1604,7 +1603,7 @@ void dce110_link_encoder_update_mst_stream_allocation_table( do { udelay(10); - value0 = REG_READ(DP_MSE_SAT_UPDATE); + REG_READ(DP_MSE_SAT_UPDATE); REG_GET(DP_MSE_SAT_UPDATE, DP_MSE_SAT_UPDATE, &value1);