From patchwork Wed Mar 3 13:42:33 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 392070 Delivered-To: patch@linaro.org Received: by 2002:a02:290e:0:0:0:0:0 with SMTP id p14csp5132904jap; Wed, 3 Mar 2021 05:43:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJx5XtXUEBwIehd5zrhq8Tf8SjiALAzSRFMPf1O2Jtx3YkW9fvksdD8S8cMkc639HhYAYbbr X-Received: by 2002:a62:1506:0:b029:1ee:ebf9:fbe5 with SMTP id 6-20020a6215060000b02901eeebf9fbe5mr3163882pfv.15.1614779038470; Wed, 03 Mar 2021 05:43:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1614779038; cv=none; d=google.com; s=arc-20160816; b=l/dsycggc8CB3+1xtirl5RNJmdDczkAWjKOvIQmBHFoJ/1wmWavpW8h0wOMHNKLJrC yqu/0Jz8fLFTsUtvW34Us7kBEK2XJACz4JOlu/Hc6br0IJMa5HhRBYn496azitNz6YeE lSIucoPtKGe2vREUygby1YCp9W7C1nsBYvqPjjMUu8VOUSA9uywPxwXFFY/h7i/D07CO ZODYZ/D8BDudA4C58JV5Ia40ljom5svsSO+QgriwAiJX3yssDHwML5MqcDI4YbcKDnLS n5s/Is1y8OM3a0t2QaMDgOqjRglVhAPx3QtiqMuWP2sls29pDImDXp24xtAyvXeVFBF5 gasg== 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=EJK8NorLKF6Zojw6u5DZjuVt+TgX9vGqNqEE/u34hMc=; b=Uw90qrUvlQUG2vjyz3AEN39Pl1dMMyzHyiW1i0VK1I+O0aNwe+Lla5IwNGDqCJGhcV qei+E+r60LQ+vdbFnGD9v7yKwTvb3flbFMDNw9grvXRcYmj75xjsUKxm7KU/1zGhYAvQ 4caZk+w8GtxdrQQMJvtNs6lw5k8+qofUuc1v5Rvpal1ThrUzzK5ouXg7qLd7FzLmghbA Obp2yTMPZ1NRnULA/YcXxKlSFcXjpkvdPkx48N83SWLGhckT9riKOXzwhLWOpfc7/qbk S4EKPn0ORTj9CHfF6R2q9H3cWdaj66y+KqATVo6ggFPrNv8lZhOTGNvxQF5pf8BROoSJ vQuQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=UZEv1Tix; 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 e11si21104284pgk.422.2021.03.03.05.43.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:58 -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=UZEv1Tix; 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 744FF6E8E8; Wed, 3 Mar 2021 13:43:41 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x435.google.com (mail-wr1-x435.google.com [IPv6:2a00:1450:4864:20::435]) by gabe.freedesktop.org (Postfix) with ESMTPS id 2D3526E8D9 for ; Wed, 3 Mar 2021 13:43:38 +0000 (UTC) Received: by mail-wr1-x435.google.com with SMTP id j2so10883444wrx.9 for ; Wed, 03 Mar 2021 05:43:38 -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=wtdOZUPejXIxG4DafVTSnIWvo2XUWaKv8nLuUC2cuVs=; b=UZEv1TixOjptA51Xf0D3ZWP6qBa1BuK4fprFPpRVDcuJ49xPXUPJGp6E+dNYNXVJVb +wirSDrdZyG+W4R4vXCa+dP800Du/zenIk68HzB2fuoOISKqgdhiA0Yo9Dw6klTLejAP njUqmMMsdKiLqi/ldUnjDL3a/hP1xjda+KEfypBrkeXVvofjvEQ/A/MZ4RtN27PbnryP 0Fp/Tpi1gfoz7AUMR+Ibx7IharnIQuPfmLONZAFKP0/IGEiKunj9r4odx6NNNPjayLCZ JfFU7iUcQlv+uNB5/2b5otcEpP3m/Dd0Eeq1XR9kHdAkIqe8fzQggTMec9s32vZPWYbr 8Yqw== 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=wtdOZUPejXIxG4DafVTSnIWvo2XUWaKv8nLuUC2cuVs=; b=WdI7yahOgGIgmvYzSZa7CtNrVCzuzV98im7vFduE86oEVSOfWu+Bkw2Zq0/5HMKgTs PeI5BaOCAlCj6bcdQuLcWXbAKnfqS2pFfWJkDovZnwJDus1t0XqhEiVkFK7VhHIfxZ4U 8havPmfV/qx5rjnAeMq+9TfQMmfQdesncu6BvXpbyTYDdhHKNKupaCWE1pXinj+NcWdv mSYmpc/GX/aJ7G1cnqSY/YhSx6Ri13e5dgqse7hH6KlBmotSBJp8h+jHT6WhRIfmw7S1 //W2MgDHd5fo8Jnl/kpsm7b57v+HOhGIygTvzKAuMBe94hF5N/YnXL0NV+wE7JHQmCJ4 fTzg== X-Gm-Message-State: AOAM5338jZZ5yeJmCoGdzcdbEbr2bGlYHphWyS86R6nnsYzV/kPzJCFw rV4cE9Z2SiyRO+rfl1btaZhRdQ== X-Received: by 2002:a5d:6d0c:: with SMTP id e12mr26589790wrq.136.1614779016850; Wed, 03 Mar 2021 05:43:36 -0800 (PST) Received: from dell.default ([91.110.221.155]) by smtp.gmail.com with ESMTPSA id w18sm6109524wrr.7.2021.03.03.05.43.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 03 Mar 2021 05:43:36 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 07/53] drm/amd/display/dc/bios/command_table: Remove unused variable and associated comment Date: Wed, 3 Mar 2021 13:42:33 +0000 Message-Id: <20210303134319.3160762-8-lee.jones@linaro.org> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210303134319.3160762-1-lee.jones@linaro.org> References: <20210303134319.3160762-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 , 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/bios/command_table.c: In function ‘adjust_display_pll_v2’: drivers/gpu/drm/amd/amdgpu/../display/dc/bios/command_table.c:1462:11: warning: unused variable ‘pixel_clock_10KHz_in’ [-Wunused-variable] Cc: Harry Wentland Cc: Leo Li Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Lee Jones Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/display/dc/bios/command_table.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/display/dc/bios/command_table.c b/drivers/gpu/drm/amd/display/dc/bios/command_table.c index 9d3bc3a073821..e879ceb0c49ed 100644 --- a/drivers/gpu/drm/amd/display/dc/bios/command_table.c +++ b/drivers/gpu/drm/amd/display/dc/bios/command_table.c @@ -1518,10 +1518,6 @@ static enum bp_result adjust_display_pll_v2( { enum bp_result result = BP_RESULT_FAILURE; - /* We need to convert from KHz units into 10KHz units and then convert - * output pixel clock back 10KHz-->KHz */ - uint32_t pixel_clock_10KHz_in = bp_params->pixel_clock / 10; - bp->cmd_helper->encoder_id_to_atom( dal_graphics_object_id_get_encoder_id(bp_params->encoder_object_id)); bp->cmd_helper->encoder_mode_bp_to_atom(bp_params->signal_type, false);