From patchwork Tue Nov 10 19:30:44 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322854 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500119ils; Tue, 10 Nov 2020 11:31:26 -0800 (PST) X-Google-Smtp-Source: ABdhPJwA3MG4itdYcTkT7woXG74R0aloiaTRMVTg2F0ZV8IClabyhpy2NvRTWMehTpZS6GxFYn3g X-Received: by 2002:a05:6a00:148a:b029:18b:1ce6:4741 with SMTP id v10-20020a056a00148ab029018b1ce64741mr2213890pfu.49.1605036686311; Tue, 10 Nov 2020 11:31:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036686; cv=none; d=google.com; s=arc-20160816; b=PbgxrIYCGXaw+dbskvPKtKJqe9WWzdxtohexzrJM47OHvuj0jyvMQqKrgzDKX2qahl eTolNvqTwuAbWQIo/rZ5QlEHj8aUM5i+xPBCUJoB7fMhb/gHyY8Z0HWryM2FiLvd1+9U yTDsaEBvrCRgxp8HKG6wsrSZE+277LC8WjIq5pyPxa6ngTcMDTxGGlZziqZ0FzEGlTPO aiL7J4DLr41dPPwHgREWGCGZmi6m8jaPvbbsZVJBkJRHZu1lDeVwik1pJOmBiTkYGxFO 3O9LTuR85AlaQA82AGhydxeZ7O/EsOVaLGMaeMCPmUR5we2KcuKA70LE6WH5A8LHVUZt /XtA== 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=8Bl3TkGq8owf4TIOFT2qbbCSd4sFhUkgjhlOPxMeZKs=; b=HvobOSfcyyB9BvQkjXDgadfqdWxGqH4wszt2/pToilHPkRhiTh+upa3Q+AkvrpI3ha eGG/0wVsrJB7S2FHl5akYAywI+d2+r0dEyTSl3K+Yg+1C7tgAsg94xJjE7OQDeO77hqw 0HGP/ADayHA3BewyISRb6mTnrGUvlRVR4NuZ9ITFQeVYyX2WYnbNoqm2BcvO654xWtcC xBiwV1IGIprjiqR/NbT55PwfzN+4TSbu60XfZitUvmWVGO7HUEKeHnBS4df58FTIW7ik aOwFEwTKCSwGx+QaYfYmWNWi46jZgKMknburYtLwWHbAV+DfhTBRYODCNlrq3o+t6cmJ 9iAw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CmiXRc4v; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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. [2610:10:20:722:a800:ff:fe36:1795]) by mx.google.com with ESMTPS id z22si12379992pfk.277.2020.11.10.11.31.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:26 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 as permitted sender) client-ip=2610:10:20:722:a800:ff:fe36:1795; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=CmiXRc4v; spf=pass (google.com: best guess record for domain of dri-devel-bounces@lists.freedesktop.org designates 2610:10:20:722:a800:ff:fe36:1795 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 9F17B89BEC; Tue, 10 Nov 2020 19:31:21 +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 5C75E89BE8 for ; Tue, 10 Nov 2020 19:31:20 +0000 (UTC) Received: by mail-wm1-x343.google.com with SMTP id h62so4311284wme.3 for ; Tue, 10 Nov 2020 11:31: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=ZQX81Ctm9sTtgsQoGgQawTW9+eghPr6miXi9Ld6UbB8=; b=CmiXRc4v8Kl5jmW2EN11kUgPzLzq6Ark8ALqQCkz7GSbVukMERLz7d42Srtb/5WZf0 9GGVvNS/FOFrNkCI2tC+GVapoUfn3vxiA/2KGrNqIlUJuTVatDxWbLsoqyjpWdrsxfKw 2koS0NDXH7HziyogXgW4QacBGKC2Zo4tkuZYo8up3YFUB6bl1jTDN3iWO15YazabMPTo GxLWm0N9zlhFo0tAcj5TGPHZF8oyEK5bM96EaQpH7iqLceE5jm8NEMIYaJoLFqSRa8Oy iIfkHJ0VjJp+5NAo2Mftgh+iev5UvoFwfRFjqqciW/UHlHutNrL1V9oUVAyVk8sM9Z4F zmFw== 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=ZQX81Ctm9sTtgsQoGgQawTW9+eghPr6miXi9Ld6UbB8=; b=UoT9sCZ4zNqnAbRDVrBeTxzEUhqXuvNUsIGnZVqawlo4c+9tj7V3NgwGT+M360xFbW EBS8Tz5N/4pNYc5ZKi7ejYBkdhOgTISJchLfNRJdoB52mWwkypyuYR2dca896alvS0YH V2zFsRaFit27/po3QEbPg/3ryCOsw8KiMnpwBzH468zM08AJmOZm74U/savkF2cutCmZ wWV13EjN1KDGAInNvJjjYGI0TKXD69rELO/vTROxP0sEeXyUEP/iJG1xvVhen8+rPK2a silGBXrRUQ7tMCgSO0HLVBT6zMuza6x9hiAmjITKBw4bIT6BJH1TiPlanktSpS1QoLWW satA== X-Gm-Message-State: AOAM532MyEJ9n3+X5sO/QeQkokLDdcUuq5NOEjzUYOATYsEPTUXDJ2UI TD54QnagX6KOvGAy1Nlqok0VpNs6Kf4aE5rV X-Received: by 2002:a1c:b041:: with SMTP id z62mr712398wme.183.1605036679051; Tue, 10 Nov 2020 11:31:19 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:18 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 02/30] drm/radeon/evergreen: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:44 +0000 Message-Id: <20201110193112.988999-3-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201110193112.988999-1-lee.jones@linaro.org> References: <20201110193112.988999-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, dri-devel@lists.freedesktop.org, Alex Deucher , =?utf-8?q?Christian_K=C3=B6?= =?utf-8?q?nig?= Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/evergreen.c: In function ‘evergreen_gpu_init’: drivers/gpu/drm/radeon/evergreen.c:3135:6: warning: variable ‘mc_shared_chmap’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/radeon/evergreen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/evergreen.c b/drivers/gpu/drm/radeon/evergreen.c index c9a9a87959f9e..efb19c445e48f 100644 --- a/drivers/gpu/drm/radeon/evergreen.c +++ b/drivers/gpu/drm/radeon/evergreen.c @@ -3135,7 +3135,7 @@ static int evergreen_cp_resume(struct radeon_device *rdev) static void evergreen_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 sx_debug_1; u32 smx_dc_ctl0; u32 sq_config; @@ -3399,7 +3399,7 @@ static void evergreen_gpu_init(struct radeon_device *rdev) evergreen_fix_pci_max_read_req_size(rdev); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); if ((rdev->family == CHIP_PALM) || (rdev->family == CHIP_SUMO) || (rdev->family == CHIP_SUMO2))