From patchwork Tue Nov 10 19:30: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: 322856 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500199ils; Tue, 10 Nov 2020 11:31:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJxDZ8Htar1kEqWP4OTivzSpPfqL53s/UM3YBJzfUIytTZAxRiK4MhX/KGiyQv56jL21m33n X-Received: by 2002:a17:902:a503:b029:d6:d9d:f901 with SMTP id s3-20020a170902a503b02900d60d9df901mr14000232plq.54.1605036691732; Tue, 10 Nov 2020 11:31:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036691; cv=none; d=google.com; s=arc-20160816; b=ybiSgK2pYwGDzbHCcMuJcWwUPQYDmQxs0DZ+lGEYN2hQsRYUN6Wy56VpJhGhZVKG8N GOx9D4r5gJI5YXgcDmJDeDx3WZw1eghZcKe9vjID3iJzhJkIivjfVE6KNscfAFYw4AZb oLKub7pMPz0i2lbC+4n1injRpyJTlLtGbPghqWmNOy+1BEa8rop9k3GOERG8usdlGIEw Cl58ACMTeUTBw/pV7mynnsmVbVUNXgdAc1iuOqJTlu7tTuaWK4f75/j8yS7QPaAFYXGF clGXaIk9p9z70DTXHdI7sev2EjeKFJB8dNXnyeGLVjZLJ4HNFX2RlaTdHAO2hNpCwmkG bkPg== 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=NRbXVUG2vmZO13su5tWQTsvbP7pj0nhrxrDlNWLzlvU=; b=OOPxXKcU6xlbve3TJq/WvO9mKqhWBbnna1iwFUSNFVymRq9QHcdOLXUU9pdeHuCVCC HMLvj3F53KhiuyLMuz15p7SspOJMN3se1uab2uDBjsinWAiAPu1AdRFCv1scW+hJdJg8 G6gcOhVeFaV3o2r+sslh05ttfVgP+7VHcog6Oxy/HosJf38V/8kpH78JNOpmFK/BjdF9 GXbStQoVWgTltVdTyJ1cAe7mI65TXPUt0+z6+ayvgNUhtJKwFu8gp2169i34Ar9R1vhU 7sDOQEurdALo5PJeFXYu10FlgW+nLnHaf8MYoXcTnpN1hEvnx06cMbmWUtmcf389cpxN /XZQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=mZZml1jy; 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 d5si12986640plr.46.2020.11.10.11.31.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:31 -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=mZZml1jy; 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 9BB0189BD5; Tue, 10 Nov 2020 19:31:25 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x342.google.com (mail-wm1-x342.google.com [IPv6:2a00:1450:4864:20::342]) by gabe.freedesktop.org (Postfix) with ESMTPS id C27A589BE8 for ; Tue, 10 Nov 2020 19:31:22 +0000 (UTC) Received: by mail-wm1-x342.google.com with SMTP id h2so4361557wmm.0 for ; Tue, 10 Nov 2020 11:31:22 -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=StAAQEcBU7NR52Iv4O4K3Wzt60gqSmLeuRfVm5ltXDE=; b=mZZml1jytN4/9i59YihQPrNuAaWkUZdpVAXKmHE+4/4U0iTDxxXftQINnq5G5KzB7G YesRLVtr9cgChuzabdGh9KH2EuSxiXVqGIXVcVPQt0PXeGOfgTM5dOjXbabrkCeznPMS M/oG817gEvJDwb4E3oJv+VQi0vnLJ71+SwUju8DAErlpIANOm0L3QGER585yKxQzU2Sf ebwUEsuVFPKaXemnBJXXnWktrStj7pS8IV4rj3r73hdlRkZN+oQgb3LOacCljFAfP4Mj WTSoGT13avpp4RioJ2BY4M491H5h2fw29JW0vttsqLYfbm7NEnYd57MfEAr1ELF2pGoA MX9Q== 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=StAAQEcBU7NR52Iv4O4K3Wzt60gqSmLeuRfVm5ltXDE=; b=KoptQKcDago7JXPXc90oyMxpRkf74kb4NhJxdG7aqgsti3LqyF4RVc5ZpmkyaaIEX9 ymRnPwYPHAoyNrzEED3orC5joQm5fHX//L2r+aaHvBeGndxJAtWmDtmWFSvobEdCi0ja hGp0BONpP/cgEYhc/4oQSMCDzjwWtt2cDf19ksgn2JAsLsx7Xp4WY2rhIzXz9fguhP4B al+GWkTK3RpjIAaU/HRKxIYXNg1Fux8R+IHY7lJO84t2nF/iz1eJbjit4G3DzEoDPwmL VuhTOeDBszl1XWbP8d8bJ8AEvNIXE1ChdTUxG38PVnUDjPx1iO0BpyGo4rvyZ5ZpvUOh 3eUA== X-Gm-Message-State: AOAM533L53YPguYECCmufPVXsIGy7X9/cs7p8Zi6UtRYlCBevfhlij+P 6pD5unKc87/GK4onR9/CkdUgpA== X-Received: by 2002:a1c:7c02:: with SMTP id x2mr717105wmc.64.1605036681441; Tue, 10 Nov 2020 11:31:21 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:20 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 04/30] drm/radeon/si: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:46 +0000 Message-Id: <20201110193112.988999-5-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/si.c: In function ‘si_gpu_init’: drivers/gpu/drm/radeon/si.c:3090: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/si.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/si.c b/drivers/gpu/drm/radeon/si.c index c27af89785f34..45076c27d7ded 100644 --- a/drivers/gpu/drm/radeon/si.c +++ b/drivers/gpu/drm/radeon/si.c @@ -3088,7 +3088,7 @@ static void si_setup_rb(struct radeon_device *rdev, static void si_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = 0; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 sx_debug_1; u32 hdp_host_path_cntl; u32 tmp; @@ -3200,7 +3200,7 @@ static void si_gpu_init(struct radeon_device *rdev) WREG32(BIF_FB_EN, FB_READ_EN | FB_WRITE_EN); - mc_shared_chmap = RREG32(MC_SHARED_CHMAP); + RREG32(MC_SHARED_CHMAP); mc_arb_ramcfg = RREG32(MC_ARB_RAMCFG); rdev->config.si.num_tile_pipes = rdev->config.si.max_tile_pipes;