From patchwork Mon Nov 9 21:18:46 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320986 Delivered-To: patch@linaro.org Received: by 2002:a17:906:d156:0:0:0:0 with SMTP id br22csp3000460ejb; Mon, 9 Nov 2020 13:19:35 -0800 (PST) X-Google-Smtp-Source: ABdhPJy22R8hA0oMRtSgKtX05fZGkIE2BGBfXXaZG5OLPiBSsYkpfTXSRFWCLfnBCvbD+BlRWLvM X-Received: by 2002:aa7:83c2:0:b029:156:5ece:98b6 with SMTP id j2-20020aa783c20000b02901565ece98b6mr15494159pfn.4.1604956775697; Mon, 09 Nov 2020 13:19:35 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956775; cv=none; d=google.com; s=arc-20160816; b=Jyc92Zb8TkV26DR9SuxDmuS5JHGD0vAdAR1hsksg2LsRzErmC/NrxJPqmQ2GgIhpCM pj6a/Kc1YSU4RHvmXRxSN/i49yxfycM3GmgC3F3/CHOUzx17rBHORfpz6iNHuv40SFYh TSBFCMHLCnAs8wM6e+wdKEZSNtMXDHInbjMCPgmiyS3JJcEgTofzSckrgijyAB5iV8Oc Z/1HPChIZdu+HnubB50Ri02EG9C8Q/CQI68Gos8GLgdG2Xq/WyS7pZ8eotAIhKIb1QhV B/iaqhNupDgFhX4qQFu1yG04ZWHt2GgUHAtPFK26V+DKsuLMPlZ0dATckA02HqDsj0uB RV2A== 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=tEyAuyZPkHXXZXVx6cB+MZus42hCiMrXpVsyqjLbBIk=; b=IGG1Q/3bQSIWsowZp0/iSWmd8MHYCEYj4jwlDPWuxReRoCbsX6paKu6JWFchcBdl27 ueW07DwXzQL4RdDZqmbRepvxfvqZyLqAbMdhlB+sZnzlGVO0Pk35TT0W20Vupvs0Yok9 /hvUhLuTE0GzLKMQaMb2jO3umKuGgAHvdJR5BC9ngs/uD1yORCFp8jpQpuvocHef8tmw 84sSqI6zPZj2hatIfT9Nz7zbLZUom4UDiqh8yVwGkmz7P2hbxq1S8UaXHm17fEYhEgww ymJ7dsAmqXlXxQipB2zNMfFh7xLoZue39SN5R/TA7/eT03JbbR2ZgPY3a0ZhURGxhDa/ Dl1Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=ONMp+BLP; 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 6si9883401pll.382.2020.11.09.13.19.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:34 -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=ONMp+BLP; 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 D7B8E89598; Mon, 9 Nov 2020 21:19:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by gabe.freedesktop.org (Postfix) with ESMTPS id CC6DB895B6 for ; Mon, 9 Nov 2020 21:19:31 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id 10so951862wml.2 for ; Mon, 09 Nov 2020 13:19:31 -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=T1sUvjuz6GhGo/eyfmlP/SOHCvkRA45s8OKsudAKYNE=; b=ONMp+BLP0pr8GPw4qGQ5ZafDFD+hKfVrwwI3l0QNlbUCStl/4v20Q2yKrVeUVieJ/1 /EHEG++w11JWCuRkI6pVfbliwTpAMswOOxzKqHVOuq4dDrk74KHAaF458LgMN+/XKWAo SIcyz5tZ4bXs7cGR7YqPOFdKiJ0skIJ5jsFNhl7Ea5Q9szqmPq2TCH/UZxpjE3K9EV9h vp4QUfIDYNirEHinBWvHkQ7ZVv9RrznVs1023gtMY17oJIpvTUzdQtaJaPCJiVyVnn9g AX3v/5GkiAAnNlntob34lzgthtPjni35Do2nVDGWEYGZz7zDBJruQkiw8wHElCLheDdp LP4Q== 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=T1sUvjuz6GhGo/eyfmlP/SOHCvkRA45s8OKsudAKYNE=; b=QpVOrfQc72CrUVS8E3lsK9tEKnOb0+sUv97UXCoZCY+C/ES1nAPgJI1HQLmYiIudmW yzVAwjNrcUfYRdzMBTzp4WnyvO3vq/+gJQ4vYp32u8XgtlB7A/N5czZNqdNOytTgZ4z+ ZgGyYGMyQRwiYA5h1sRYy5TknZd9YfhL44m9/PDs8FXtTBbw2OHVx5mFO/ues86DeO4t 4LVqhQkKtxxaNj+kSNYopjsL7WeRt6yfsJZhzUhiMrM/tdYHa/J8U8UmbonUOf4ewi6O RyqgFZgQupsRxsQU3fcsFhJrdDoZd493jQwhiORIYeqKKb6Lnqx7s+bHfJXXRKXYWs9M s22g== X-Gm-Message-State: AOAM53056nGWPkKTmMP+ZDPaRcQlaf+HGamUZOs/iNFHirT1yNyIiHcm +Anowsod47JEwTt5n1AgVtonYQ== X-Received: by 2002:a05:600c:2110:: with SMTP id u16mr1168189wml.4.1604956770543; Mon, 09 Nov 2020 13:19:30 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 71sm15170630wrm.20.2020.11.09.13.19.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Nov 2020 13:19:29 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 11/20] drm/radeon/r600: Strip out set but unused 'tmp' variables Date: Mon, 9 Nov 2020 21:18:46 +0000 Message-Id: <20201109211855.3340030-12-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201109211855.3340030-1-lee.jones@linaro.org> References: <20201109211855.3340030-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 , linux-kernel@vger.kernel.org, amd-gfx@lists.freedesktop.org, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@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/radeon/r600.c: In function ‘r600_pcie_gart_tlb_flush’: drivers/gpu/drm/radeon/r600.c:1083:7: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/radeon/r600.c: At top level: drivers/gpu/drm/radeon/r600.c: In function ‘r600_mmio_hdp_flush’: drivers/gpu/drm/radeon/r600.c:4393:7: warning: variable ‘tmp’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Sumit Semwal Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Cc: linux-media@vger.kernel.org Cc: linaro-mm-sig@lists.linaro.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/r600.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/drivers/gpu/drm/radeon/r600.c b/drivers/gpu/drm/radeon/r600.c index d9a33ca768f34..6e780b0109995 100644 --- a/drivers/gpu/drm/radeon/r600.c +++ b/drivers/gpu/drm/radeon/r600.c @@ -1080,7 +1080,6 @@ void r600_pcie_gart_tlb_flush(struct radeon_device *rdev) if ((rdev->family >= CHIP_RV770) && (rdev->family <= CHIP_RV740) && !(rdev->flags & RADEON_IS_AGP)) { void __iomem *ptr = (void *)rdev->gart.ptr; - u32 tmp; /* r7xx hw bug. write to HDP_DEBUG1 followed by fb read * rather than write to HDP_REG_COHERENCY_FLUSH_CNTL @@ -1088,7 +1087,7 @@ void r600_pcie_gart_tlb_flush(struct radeon_device *rdev) * method for them. */ WREG32(HDP_DEBUG1, 0); - tmp = readl((void __iomem *)ptr); + readl((void __iomem *)ptr); } else WREG32(R_005480_HDP_MEM_COHERENCY_FLUSH_CNTL, 0x1); @@ -4390,10 +4389,9 @@ void r600_mmio_hdp_flush(struct radeon_device *rdev) if ((rdev->family >= CHIP_RV770) && (rdev->family <= CHIP_RV740) && rdev->vram_scratch.ptr && !(rdev->flags & RADEON_IS_AGP)) { void __iomem *ptr = (void *)rdev->vram_scratch.ptr; - u32 tmp; WREG32(HDP_DEBUG1, 0); - tmp = readl((void __iomem *)ptr); + readl((void __iomem *)ptr); } else WREG32(R_005480_HDP_MEM_COHERENCY_FLUSH_CNTL, 0x1); }