Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp1949582ybv; Fri, 14 Feb 2020 08:44:08 -0800 (PST) X-Google-Smtp-Source: APXvYqxASXPzsSNNFsEpQ/aulph8MoEiEMi1lHLzAxMxsOQw2K9AJc6f6OuJ0RNu6RvMYp8Iu6G+ X-Received: by 2002:a9d:7083:: with SMTP id l3mr2863470otj.193.1581698648711; Fri, 14 Feb 2020 08:44:08 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581698648; cv=none; d=google.com; s=arc-20160816; b=Qxj5AFfYXq8IFDTSttySBE8u2f47nTIbV/nc1j3zz72A8WxtpdQxRfOIoZDsvBNMi6 sovGPC15fJlwZtWWUktDQBSdIXcIlIwOY/d12Liev8hekYo6IM5zLYhyh3/b3crhRPig IliKW2fKhul5dvag/YEx6m8lfnYgrgbcUx2DK7Xqoordr/xSpKcCw7GQnQBLU2oF7Fvo 9ymVCpX/xnNXhIBiiB1EJ/VI1o19dRPqqOqCUfnEZcqM5U2abDCJ/J0EExwPulfqpC2t la21HFFhcLUjmztGv2I4RGhufj6HJzWSkwmmGYdSRSIniVj7AFZ5LPgLboqGMfzr8hR7 oYrA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=7EpDL25Me5CAJsgyADNgyX5q/On2ZUUg3b8GJ3Ydf5k=; b=lHEf3xk69OgKhLyN4UntOmP/q6D5y2y6MggMJ1dOlhD39TyVTgCWUL/ipDg8znuXWN rwAoq7lKfX9xKLYdU5EY/gPwa9LQLBomAuF3wNe43okIHDv25J7OfgwCkkroSxpclhM+ ix1e206ZeniRKY78HkzaLl23vZc3/zIJcaOgGVL+YfkIRv1M7A53BpfWUAIWeGvwElEy rtYzuKTGBrcMf+ax/jbpSNfBFQyZaYAvAgsknbb4PH8q4z7JnA9YN6MGM0TUcAU9fPnw Qve62F3T92KqnXWWu0ME2fl+6CzbKAYah7BzY6IQiCs5pZpWKUu14XUG4f+SUZP5+iA3 cE4Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sHybGuO1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y8si2917821oih.141.2020.02.14.08.43.56; Fri, 14 Feb 2020 08:44:08 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=sHybGuO1; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2393569AbgBNQnR (ORCPT + 99 others); Fri, 14 Feb 2020 11:43:17 -0500 Received: from mail.kernel.org ([198.145.29.99]:57240 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405387AbgBNQWJ (ORCPT ); Fri, 14 Feb 2020 11:22:09 -0500 Received: from sasha-vm.mshome.net (c-73-47-72-35.hsd1.nh.comcast.net [73.47.72.35]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 8324A246DD; Fri, 14 Feb 2020 16:22:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1581697328; bh=Zis/2J4cNpsMZcqwf9Osp3kP0K7LypCRbA1/0sjuczk=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sHybGuO1Emu90VfjTC9MuxvWIQaiC+RVMowqH9uRtHUAmRDla6rZucp8+TDctWRQD 2J8KULF9FX5vMzw7Gkbtl4VWXjc+2P5EuSWNBLCrgVGt6/OcfcpVXNjY4t8HfeM92Y OuwcqmGGlnlm47tQ3ThLq3LkiUPrePdxaMek7wCQ= From: Sasha Levin To: linux-kernel@vger.kernel.org, stable@vger.kernel.org Cc: yu kuai , Alex Deucher , Sasha Levin , amd-gfx@lists.freedesktop.org, dri-devel@lists.freedesktop.org Subject: [PATCH AUTOSEL 4.9 036/141] drm/amdgpu: remove set but not used variable 'mc_shared_chmap' Date: Fri, 14 Feb 2020 11:19:36 -0500 Message-Id: <20200214162122.19794-36-sashal@kernel.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20200214162122.19794-1-sashal@kernel.org> References: <20200214162122.19794-1-sashal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-stable: review X-Patchwork-Hint: Ignore Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: yu kuai [ Upstream commit e98042db2cb8d0b728cd76e05b9c2e1c84b7f72b ] Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c: In function ‘gfx_v8_0_gpu_early_init’: drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c:1713:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] Fixes: 0bde3a95eaa9 ("drm/amdgpu: split gfx8 gpu init into sw and hw parts") Signed-off-by: yu kuai Signed-off-by: Alex Deucher Signed-off-by: Sasha Levin --- drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c index c8a5cf5365a94..da32c7e49be0d 100644 --- a/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c +++ b/drivers/gpu/drm/amd/amdgpu/gfx_v8_0.c @@ -1739,7 +1739,7 @@ static int gfx_v8_0_do_edc_gpr_workarounds(struct amdgpu_device *adev) static int gfx_v8_0_gpu_early_init(struct amdgpu_device *adev) { u32 gb_addr_config; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 dimm00_addr_map, dimm01_addr_map, dimm10_addr_map, dimm11_addr_map; u32 tmp; int ret; @@ -1932,7 +1932,6 @@ static int gfx_v8_0_gpu_early_init(struct amdgpu_device *adev) break; } - mc_shared_chmap = RREG32(mmMC_SHARED_CHMAP); adev->gfx.config.mc_arb_ramcfg = RREG32(mmMC_ARB_RAMCFG); mc_arb_ramcfg = adev->gfx.config.mc_arb_ramcfg; -- 2.20.1