From patchwork Thu Nov 12 19:00:13 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324221 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp588768ils; Thu, 12 Nov 2020 11:00:56 -0800 (PST) X-Google-Smtp-Source: ABdhPJxx6zUBWYnm6S3I8rXr6onfQZpWSw/gAbJjKmxvY8dsuQicaun6YPxws5D2uzWR8sNx6CNJ X-Received: by 2002:a17:902:778d:b029:d7:cd5a:945e with SMTP id o13-20020a170902778db02900d7cd5a945emr996154pll.25.1605207656661; Thu, 12 Nov 2020 11:00:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605207656; cv=none; d=google.com; s=arc-20160816; b=wmyzEvD0Yu4IHE4HwYeQpt2722nu1H0BAUrPcIp1DYxIJg1SECCp6JfUTl8mFcPfUn c8sAZuoxK4//TCBHTApvxIt6ukiyO4D1V3+aQoCIx/ignxyuYInJdC5wx/oD1zqhwMJL cZPu5rcC69pPEyV90qMYtm3UH3H0g8Ga0llpOPIIWAnlxakiSwghWtDHMzCcD0JE0CuX YTimse0ecviQNoSlqw/IlPz8QpRtIl+ylbUddh4FXGcnTReAynsOYAN+9LN7jzwH/b6H +RwkAYmRgpMU2+AA/fOcJ+JAusHKJDu3PDZTp4AlVLmknrqdGCdm0Nhby0CsF8PsHm4s jKDg== 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=3wJJ/dxzKKOcDo+OqZkTQO35OXVe+WW+ytFtA87rhdA=; b=g7RK8Xx4OIvNQlFHlSjF6BqxSk888Pwm/yYxxFdw9QI8OkMT1eF2Q6tBSJXMi/AHdZ spT97coj2gT+AUfMVR7ocSWS/9WvUKZchsNBNkkFFN//aSGactx+b1GtOZqS40aOP3WJ Vl9kBtz5FAAtEp2bIIwU5vNq3Yo40WRckE3V0MRy75FPEU8v55XF+b3w1Si47Rs6ikA3 cuMnuxUlstBej09LeYIOl5NO/rpcj6UdARafO/SUubgjx3UEkdZmdt5yfujzEAt3hITN axdS5afYKPpSWfEe6b41Ut/Fc0jax5Ld7yGC0yHtmG+UQArFYncbJvAMqs1arULS8eqS LSKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="Y1OLNk/U"; 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=linaro.org Return-Path: Received: from gabe.freedesktop.org (gabe.freedesktop.org. [131.252.210.177]) by mx.google.com with ESMTPS id l18si5132623plb.26.2020.11.12.11.00.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:00:56 -0800 (PST) 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=@linaro.org header.s=google header.b="Y1OLNk/U"; 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=linaro.org Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 4D9616E174; Thu, 12 Nov 2020 19:00:51 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x442.google.com (mail-wr1-x442.google.com [IPv6:2a00:1450:4864:20::442]) by gabe.freedesktop.org (Postfix) with ESMTPS id 860B06E314 for ; Thu, 12 Nov 2020 19:00:50 +0000 (UTC) Received: by mail-wr1-x442.google.com with SMTP id c17so7118827wrc.11 for ; Thu, 12 Nov 2020 11:00:50 -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=gVcDG3IiNQEq4rpTJUM8b3mZR6jA74yvr8OWtv64epQ=; b=Y1OLNk/UJGCriJrFzTJyz/7mEB43UxZLzJz8hPJJs02oFqzKBJE0899W3d0AtzsB43 GMkA5SjnvYXBpOkdpVgOqsywYS3E41ROtpGzJP3Lhtda/31ycYXjg/AvNc8eCFD+o8xn 02aiZoaSxAOHPpz+uw3fQ7TpG0KwYt68Xj2IXLd1lBmEtMKeTpxzgdZHgy3idhQbe7x/ Br/Wm4m7eyvRH3mh+xGUw+J3EjfSL36y2O1H26GQ6x2F1WtrGEjUe3or6rJZGYL4Wd6W 3EfdycZCcsWf7uQwp2tA72EQUq6o8/bw+dgq4RoEeHmmEyJpnJE6elo797Oa9WJTgogr Wxog== 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=gVcDG3IiNQEq4rpTJUM8b3mZR6jA74yvr8OWtv64epQ=; b=NlcuudeYdhg1QI3ytDR6ixHJ7kM4CSNWjUjhMtikcETRfiUXuTD6vfQjOClvKFlgPs o7ixebS6KJXo0aR1WYgroLNrBnsuvAj7j39QOBLj8NYOjya12QOu7BvjTt28uwc+02sC CmUcL8q1aXWRCtQF7OrdubKVaty5ijj4Xh4lnOwUqyTJE81j5pLg+bRnOpdqd/zsAXUZ FkY8KaKzi6I4kjJqIxNj0WIApb4p3R5uzliVm2XIWX3a3HjEwaQLjJKUIgFvM6j4anFl /lmf93qn0uguGgA+6bYEF/8JQ7HwW+XrH/OnL29KyuiMTNWWM+d6Lc1e+mh09QRiCC+l MJSA== X-Gm-Message-State: AOAM5306Ft7dCQlgQuRG5NST4iuHzzvPbWnQjL6dJE39hNH1g4ZR/DPU YkB/fyxcALBrGjlCPuicmsmo2g== X-Received: by 2002:a5d:514a:: with SMTP id u10mr1108099wrt.312.1605207649222; Thu, 12 Nov 2020 11:00:49 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id p4sm8105214wrm.51.2020.11.12.11.00.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Nov 2020 11:00:48 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/30] drm/via/via_dma: Remove set but unused variable 'agp_base' Date: Thu, 12 Nov 2020 19:00:13 +0000 Message-Id: <20201112190039.2785914-5-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201112190039.2785914-1-lee.jones@linaro.org> References: <20201112190039.2785914-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: David Airlie , dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/via/via_dma.c: In function ‘via_cmdbuf_jump’: drivers/gpu/drm/via/via_dma.c:596:11: warning: variable ‘agp_base’ set but not used [-Wunused-but-set-variable] Cc: David Airlie Cc: Daniel Vetter Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/via/via_dma.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/via/via_dma.c b/drivers/gpu/drm/via/via_dma.c index 1208445e341de..cd56ffa3df589 100644 --- a/drivers/gpu/drm/via/via_dma.c +++ b/drivers/gpu/drm/via/via_dma.c @@ -593,13 +593,11 @@ static inline void via_dummy_bitblt(drm_via_private_t *dev_priv) static void via_cmdbuf_jump(drm_via_private_t *dev_priv) { - uint32_t agp_base; uint32_t pause_addr_lo, pause_addr_hi; uint32_t jump_addr_lo, jump_addr_hi; volatile uint32_t *last_pause_ptr; uint32_t dma_low_save1, dma_low_save2; - agp_base = dev_priv->dma_offset + (uint32_t) dev_priv->agpAddr; via_align_cmd(dev_priv, HC_HAGPBpID_JUMP, 0, &jump_addr_hi, &jump_addr_lo, 0);