Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp2049838pxu; Tue, 24 Nov 2020 15:53:18 -0800 (PST) X-Google-Smtp-Source: ABdhPJyeKZVENVhNE1NfnyVtOIF9jC2sQH1JpwXb2XxtRnqXoAfSsLeI3i1ZAJUlm4leehxxbMVt X-Received: by 2002:a17:906:2857:: with SMTP id s23mr883360ejc.218.1606261997714; Tue, 24 Nov 2020 15:53:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606261997; cv=none; d=google.com; s=arc-20160816; b=A4QC520h1Aj3s6brdAlb8i/XcvZDSW40TrgXObMtzwUhad9H8s4PEvuxIRGmZj5wcN kQgKLsGBU+TCMpdZjkfoTmleYGmoLcaSrRkpJJOQkzWpkWUyiDhrQcbSEOXfnLZS8ydQ O+J9eXlvtq2oeB3bRT5ZbbjsdelLO2RisPg1fSWzRrKmymu7Q6fJahowsXsPIwuQNGoS iO5SqA1Uv86UzWMTlM63yZMy5K0qX9KCprfmTIC3MYn0FXCxCRGGOXkf2p36cBOe08XC GgjiI4MEcJRDGAMyJ7mgPcB31moh1bqjHOcqu3RIYwUayL6e+/WQcFS8x7YScbFRPb8g bJhA== 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=6BIBjiOdivrzYawdrQqwhLZi7LHNHFFVX0tDFPG1aP4=; b=f02XtvbBCi3i2qzzjEE6pmK+FtmmHq03DW4f2o2qVqpRoKst2TEgB2EX4QZzlHkxTQ X6WukcYjySMyJU6JZfRMQLZZEW4oZix4rlIxNNAjbsK7efS7a6TZfQ1UuUvTemxiGqg1 m4kVGvTs/Wy/hcvyxRztAcxPWQhReDVTC3jfNTcq0/wzvm48e2bhDcuiUcV8bLNHbW0c Mu+7t7vXnLPeLV+fCI6LV+Zk/cfseG8bySaKsDHFDnddmNFv3wHP95+0Pr/CwLdGSuD3 uI8dFJKsfeXGOgOSCRIT4HLcPSPNpZFK/RCWTHNohgm4WIoCc2+GoBNOHnVIl3mWgofu 0Mqw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S+ft6BuT; 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 mj25si263265ejb.337.2020.11.24.15.52.54; Tue, 24 Nov 2020 15:53:17 -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=S+ft6BuT; 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 S1727903AbgKXTq0 (ORCPT + 99 others); Tue, 24 Nov 2020 14:46:26 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35672 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726896AbgKXToU (ORCPT ); Tue, 24 Nov 2020 14:44:20 -0500 Received: from mail-wr1-x441.google.com (mail-wr1-x441.google.com [IPv6:2a00:1450:4864:20::441]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4F4FCC061A54 for ; Tue, 24 Nov 2020 11:44:20 -0800 (PST) Received: by mail-wr1-x441.google.com with SMTP id i2so4501877wrs.4 for ; Tue, 24 Nov 2020 11:44:20 -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=6BIBjiOdivrzYawdrQqwhLZi7LHNHFFVX0tDFPG1aP4=; b=S+ft6BuTv+JtOVsSGQS38Kw5N5F+7HgwyqOwHtI4YmLpPi8myfl9uf/3DTCLKlBmG8 U/KUA9OBoVwRem49Ansk6PTyOuiFaTFxK5D05JMdRD7lLxS4N3xkpFovqXuy2TQqaVfs llG68eAtYZkhHtrj0DvGypS6D7uB0GwhKM0lfgXPgCLQye/PAwFaX277L5GeutR9iNmh 3abHn1zZaQm+XcmKhu1ZDH9CVjBLpPUHmv40UTGu0vA3rVieMl0msCICGCSRSV8YmCU3 Ejlgn+3iG7Xh/BB4gBDCEWBaPXBQe4QCQgSdD1+cWLIE9PhTH1syZe5cBsnSIciT4eb5 rpyw== 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=6BIBjiOdivrzYawdrQqwhLZi7LHNHFFVX0tDFPG1aP4=; b=GJN0QROj83Hp8H0XIdlCx3P/SLjaXPtU4DeWthEWSn28XmqJLpnkQkqgrt7qMiQgyk DBsT0MDJIRtoBtrzlkrDZEMXsg9vVuBvZtQfAZEZd+2H25uez7nY7wjgc4L0Vukpj78K npyb/iiRCVqhQbWUGOGG/o6KTbaDmE9cZDFISL5WYYJ0BI4nubcd/OhLinKhddsKWtpg oSjyxxLYWQVWvPtmYp6D8pZt/eHK0nwxwPNmKMR0ltFH7gzyH2liW8+opCt5ySnPkkjM lZ9fhvwoGhhmDQNsvF5Tjqx9ZbaYc0Dx4+rNOkx9b+LIeK7aqUdpQCHcnJUEviZzYFj2 UpEg== X-Gm-Message-State: AOAM531uyPGNHutJhKe/7Uu2NLGh02zq9LExWYpm4AbZhLbQIRgBi0EL GRiOrK8cDytcU3RL3XlDjztJXw== X-Received: by 2002:adf:e5c4:: with SMTP id a4mr126337wrn.56.1606247059082; Tue, 24 Nov 2020 11:44:19 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id d134sm200511wmd.8.2020.11.24.11.44.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:44:18 -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 16/40] drm/amd/amdgpu/gfx_v10_0: Remove a bunch of set but unused variables Date: Tue, 24 Nov 2020 19:38:00 +0000 Message-Id: <20201124193824.1118741-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201124193824.1118741-1-lee.jones@linaro.org> References: <20201124193824.1118741-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/amd/amdgpu/gfx_v10_0.c: In function ‘gfx_v10_rlcg_wreg’: drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1416:18: warning: variable ‘grbm_idx’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1415:18: warning: variable ‘grbm_cntl’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1413:15: warning: variable ‘scratch_reg3’ set but not used [-Wunused-but-set-variable] drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c:1412:15: warning: variable ‘scratch_reg2’ 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/amd/amdgpu/gfx_v10_0.c | 9 --------- 1 file changed, 9 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c index a6d03931f7fa4..d4760f4e269a1 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v10_0.c @@ -1409,23 +1409,14 @@ static void gfx_v10_rlcg_wreg(struct amdgpu_device *adev, u32 offset, u32 v) { static void *scratch_reg0; static void *scratch_reg1; - static void *scratch_reg2; - static void *scratch_reg3; static void *spare_int; - static uint32_t grbm_cntl; - static uint32_t grbm_idx; uint32_t i = 0; uint32_t retries = 50000; scratch_reg0 = adev->rmmio + (adev->reg_offset[GC_HWIP][0][mmSCRATCH_REG0_BASE_IDX] + mmSCRATCH_REG0)*4; scratch_reg1 = adev->rmmio + (adev->reg_offset[GC_HWIP][0][mmSCRATCH_REG1_BASE_IDX] + mmSCRATCH_REG1)*4; - scratch_reg2 = adev->rmmio + (adev->reg_offset[GC_HWIP][0][mmSCRATCH_REG1_BASE_IDX] + mmSCRATCH_REG2)*4; - scratch_reg3 = adev->rmmio + (adev->reg_offset[GC_HWIP][0][mmSCRATCH_REG1_BASE_IDX] + mmSCRATCH_REG3)*4; spare_int = adev->rmmio + (adev->reg_offset[GC_HWIP][0][mmRLC_SPARE_INT_BASE_IDX] + mmRLC_SPARE_INT)*4; - grbm_cntl = adev->reg_offset[GC_HWIP][0][mmGRBM_GFX_CNTL_BASE_IDX] + mmGRBM_GFX_CNTL; - grbm_idx = adev->reg_offset[GC_HWIP][0][mmGRBM_GFX_INDEX_BASE_IDX] + mmGRBM_GFX_INDEX; - if (amdgpu_sriov_runtime(adev)) { pr_err("shouldn't call rlcg write register during runtime\n"); return; -- 2.25.1