Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3517349pxb; Mon, 9 Nov 2020 13:21:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJw4OzJelZKIf2dubTb9TgPLby56jNUV43LS01xy56hCl6ZG1T84E0CDKCTmkSKVekTtZbBq X-Received: by 2002:a50:c28a:: with SMTP id o10mr12757135edf.222.1604956907158; Mon, 09 Nov 2020 13:21:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604956907; cv=none; d=google.com; s=arc-20160816; b=xj2lZNiVQIvh54g7IeGBksbQxxG2ybGZT2eLaEqyI9mojahfyKhEf/R5O7gu83CKPP Iq3LmVJtmsFKEpd32HmDeoR5mCxCHa+mqVFxRwfO5e2y/Zqj/XsBrv1kVF75iuCl3aQA ihUpjQZVfucP4nxWNg7QxqB6MXVXmueuGxWwIUcmAlR93a5E2aoE6QzvfEl4/Wdzht/Z 1zf8SWm3pg6fR7we/GNdeUMuc2oJVJHWTyXyww8IOdiPHzMEeGUMrb+5iMvW2KtzJqss qyjNZeWWA6OuOXjRRgX1icF2AmmbZGPuHQkxA9D3Sp5GOK2qS2g987TD96KoIQdu7NBS B9wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=T1sUvjuz6GhGo/eyfmlP/SOHCvkRA45s8OKsudAKYNE=; b=iKIAJa5J3/IVJgt5M+wEOsfKbui+dFgJdKbjRPARLfW4ZF6Xyvf3fNVp7gXS9+4Ab0 fFU9Wkd9+39TNvTFaNDKhHqCO3UmWGnlIWSOU38jUXsoVmLL2LVQdG7DUSQ2g6KVBskP V/3/P+w/wo4yFKceGDfP5TqVM1HyopPRB1mvB7JHe13HuuWNXjp+krSULl6fyKFNmkBK zWkC55h30BAzEXJZW35a/C37sCOO6gtcae+X3ud/C9L/p98EXXrz1qyF3IM80aXukmT/ uJUEceDdauclNEyHvFyaAzgXJCgVPHE+BGZfUjfqhKbjNaIXHsRPMYf+dWTYGoSeKXPC i70w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ONMp+BLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id bt25si8493229ejb.507.2020.11.09.13.21.23; Mon, 09 Nov 2020 13:21:47 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=ONMp+BLP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731416AbgKIVTf (ORCPT + 99 others); Mon, 9 Nov 2020 16:19:35 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42170 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731356AbgKIVTc (ORCPT ); Mon, 9 Nov 2020 16:19:32 -0500 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C433EC0613D3 for ; Mon, 9 Nov 2020 13:19:31 -0800 (PST) Received: by mail-wm1-x343.google.com with SMTP id d142so939926wmd.4 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=lJwedwfPYd6LuT6D12rP5NzdfWopuZn7ZKDO9u0ohUR+/amKyVAlCfJufkp3wcNdFr 3r6sSqAiLMVbHACjaXI79u8IGS0Ygrwbvgzra4YigskNtQeGIewAwIPXAA9hN7S1xP2C +490HJbF99jija/SXnOzVRzQvmUL2hYvfljLtndHUg670ti85ByMZdZYc8ddgBekI92P UGYEOBFzQbnBjyMs4g2Fj+vyi66BZ0g30jyB0azgLC/9zZbvtcvBnzEa/U+oHk4oZYNr wOJcTfOpULf/HIn7xAuzZRK7YxlEOQ+dQDePP1zCsXggh3Ph6VrvaCE3f0Mis6hPF55D p6eA== X-Gm-Message-State: AOAM530Y7xikfLKJfkIzL7MAhWfD1Bw70+BKUOlqGNOp3dzIbzOyH1Rm oMVFaFpiSr8wLDs80uMNSAc8jQ== 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 Cc: linux-kernel@vger.kernel.org, Alex Deucher , =?UTF-8?q?Christian=20K=C3=B6nig?= , David Airlie , Daniel Vetter , Sumit Semwal , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org, linux-media@vger.kernel.org, linaro-mm-sig@lists.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 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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); } -- 2.25.1