Message ID | 20210113145009.1272040-27-lee.jones@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a02:ccad:0:0:0:0:0 with SMTP id t13csp599579jap; Wed, 13 Jan 2021 06:52:33 -0800 (PST) X-Google-Smtp-Source: ABdhPJz8k62OypzCYjmJRsPADjxqglBpo1Mc60ymLJsx9IPyvDkJi4SLbE7khM1tfk3begvR8RkP X-Received: by 2002:a65:4542:: with SMTP id x2mr2416182pgr.90.1610549455589; Wed, 13 Jan 2021 06:50:55 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1610549455; cv=none; d=google.com; s=arc-20160816; b=qQVieYF7jYM4Tme6Nv2jCoTGEsSiyTuzt1FbaqGqC8zvjoroP0AYimmrJ9UsvQsaER Pu3jwLmxEecl6qHXmifxTC9Xx5WoCQtPluPt9Oho5eDO+EafJjgYFr1qv3zuEAEzHKm1 O9cS1mc4WhSrKdCcD2uVQme8O2U+FFhqgsT1oT7TxqoDbTv32jLswh5JGfb1pz/sdt/8 Uc3TAADMbdTgRnb7Mx4DtwpCNUejFxzKpmOcJopZskLL6vkRYAEi3NQDT8njsMSgsvyf di3cTZy5axcbd3ukm2BakFINJAwVKK146WKRbIU4MRzI9q3IFPJ+AHp5AuipCl7ovaBi 8ntg== 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=KHZjDRHAEakhyZQ77R7NXlnxY1w5QfYt6qh+tS4lvZg=; b=y7mCFdgxqyR8QxIcx/LMX2k+PAdheEvWJ+z8FNgwWqnSCMNHS/614Kb8KKFEUSaF7G zxpwWbqpYf99BclQCnfWTP52TRzBff2tjrdTgC7AzvasFI2S6uYUQwsNxoXrd7+rZCJo AwljcYt1fI/sGX3IyJJiFaxOaPQ8xgJuUUCz/4kc4lVfspbZHQZzYpicHm0xSPGvQe1g To/ocqj6HeL0SSj1GHExPKCeoCoRIcGBb3g56qG20RvgXn72J6QS1PfVJ2jjSYxWnYt3 Sgd3I0v+Vxa53rnXuy8o9PPSJ/6FKYUq9DNNQVJ95lxcMbpVT6v61gqNDkfulFpjXBWk ZOgg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=IDza5YLi; 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: <dri-devel-bounces@lists.freedesktop.org> Received: from gabe.freedesktop.org (gabe.freedesktop.org. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id s78si2661023pgs.166.2021.01.13.06.50.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:55 -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=IDza5YLi; 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 D70996EA63; Wed, 13 Jan 2021 14:50:52 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x332.google.com (mail-wm1-x332.google.com [IPv6:2a00:1450:4864:20::332]) by gabe.freedesktop.org (Postfix) with ESMTPS id B2EB36EA75 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 14:50:51 +0000 (UTC) Received: by mail-wm1-x332.google.com with SMTP id h17so1655136wmq.1 for <dri-devel@lists.freedesktop.org>; Wed, 13 Jan 2021 06:50:51 -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=fiTAiO1+djM4LYXjGKueW16bvgv2sBtNiLbtIOEARdk=; b=IDza5YLilamkwPDT+g2/a0lofmuncKNpAv/y/6ZQX7PTgZHHrzIscPArIaLwzgGk21 +PTQkWm+NELC+KC9BFDcWCwiEBGUoc7D99iVhf/b8Zau/fF4+imDj62ocQwZfhj48s7p G301bdVxqdgcGdeZ0mOu5lmhiQU2WC/WPRGqNZpFfUOiJAjYflnQOI3iCRme45LwRAT5 UA87z3v5OeC740plgM+jScryysn9swGK41grynXPhZPBHzL1uyI195awHeRx0r0D+KV6 M3YDyk1IDQxUtVgKliH+QZdMV6naG94aZh3W2EpFGPxDHMNQ6+AhIUIbY31cyP7lq5uP Fxpw== 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=fiTAiO1+djM4LYXjGKueW16bvgv2sBtNiLbtIOEARdk=; b=rneRT7ri/RTMWCtOSg7OhjsZrFRRh49Wnpqutk3HDzl+ojmUxL9aF0t1lkLCPEjTgx ONwJCL0CzgCBneuXb12y8xV33nbj31OCTqfkrBqOPzj9NcgBELWMHMzD8922do009kAm OHSDekLujc0I4GooXF7JecdknudzaxMntKeqEaNwp95ctZi+q2zlnKW6B5W9tJ3EmgnE YReGkt1kjeBZbc9wGm4EslDPkHBmoYLq1yx1n+xSqxfoAS/vuk8+LPe3GFJzJE/RuALH QMEaHnQEw+mXuPF9FHAoJus1vXgdsia8B04rkRU4cqiNx+4sZDooCj5V0p1FJjpBj+qS r5mQ== X-Gm-Message-State: AOAM531n9i+1lMbqHAh0kL6SwipylXuwhg5JlktlQ7z6dJx02Uqo0On6 oq8um7t2qw2JZq8Pp8lLqHKEow== X-Received: by 2002:a1c:988f:: with SMTP id a137mr2554157wme.130.1610549450459; Wed, 13 Jan 2021 06:50:50 -0800 (PST) Received: from dell.default ([91.110.221.229]) by smtp.gmail.com with ESMTPSA id t188sm3273433wmf.9.2021.01.13.06.50.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 13 Jan 2021 06:50:49 -0800 (PST) From: Lee Jones <lee.jones@linaro.org> To: lee.jones@linaro.org Subject: [PATCH 26/31] video: fbdev: riva: riva_hw: Remove set but unused variables 'vus_p' and 'vus_n' Date: Wed, 13 Jan 2021 14:50:04 +0000 Message-Id: <20210113145009.1272040-27-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20210113145009.1272040-1-lee.jones@linaro.org> References: <20210113145009.1272040-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 <dri-devel.lists.freedesktop.org> List-Unsubscribe: <https://lists.freedesktop.org/mailman/options/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=unsubscribe> List-Archive: <https://lists.freedesktop.org/archives/dri-devel> List-Post: <mailto:dri-devel@lists.freedesktop.org> List-Help: <mailto:dri-devel-request@lists.freedesktop.org?subject=help> List-Subscribe: <https://lists.freedesktop.org/mailman/listinfo/dri-devel>, <mailto:dri-devel-request@lists.freedesktop.org?subject=subscribe> Cc: dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, Jeff Garzik <jgarzik@pobox.com>, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" <dri-devel-bounces@lists.freedesktop.org> |
Series |
Rid W=1 warnings from Video
|
expand
|
diff --git a/drivers/video/fbdev/riva/riva_hw.c b/drivers/video/fbdev/riva/riva_hw.c index 4ee63f7d84d3e..2bc510c24aa9e 100644 --- a/drivers/video/fbdev/riva/riva_hw.c +++ b/drivers/video/fbdev/riva/riva_hw.c @@ -842,7 +842,7 @@ static void nv10CalcArbitration int found, mclk_extra, mclk_loop, cbs, m1; int mclk_freq, pclk_freq, nvclk_freq, mp_enable; int us_m, us_m_min, us_n, us_p, crtc_drain_rate; - int vus_m, vus_n, vus_p; + int vus_m; int vpm_us, us_video, cpm_us, us_crt,clwm; int clwm_rnd_down; int m2us, us_pipe_min, p1clk, p2; @@ -924,8 +924,6 @@ static void nv10CalcArbitration us_pipe_min = us_m_min + us_n + us_p; vus_m = mclk_loop *1000*1000 / mclk_freq; /* Mclk latency in us */ - vus_n = (4)*1000*1000 / nvclk_freq;/* nvclk latency in us */ - vus_p = 0*1000*1000 / pclk_freq;/* pclk latency in us */ if(video_enable) { crtc_drain_rate = pclk_freq * bpp/8; /* MB/s */
Fixes the following W=1 kernel build warning(s): drivers/video/fbdev/riva/riva_hw.c: In function ‘nv10CalcArbitration’: drivers/video/fbdev/riva/riva_hw.c:845:23: warning: variable ‘vus_p’ set but not used [-Wunused-but-set-variable] drivers/video/fbdev/riva/riva_hw.c:845:16: warning: variable ‘vus_n’ set but not used [-Wunused-but-set-variable] Cc: Antonino Daplas <adaplas@gmail.com> Cc: Jeff Garzik <jgarzik@pobox.com> Cc: linux-fbdev@vger.kernel.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones <lee.jones@linaro.org> --- drivers/video/fbdev/riva/riva_hw.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)