From patchwork Tue Nov 10 19:30:47 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322858 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500257ils; Tue, 10 Nov 2020 11:31:36 -0800 (PST) X-Google-Smtp-Source: ABdhPJyMVr8bucseidx0lt3D6bvNiCSOMJGfYwyqyfAkkiH1otYWmwHIFurf+MVHfy++0cj90T86 X-Received: by 2002:a63:d349:: with SMTP id u9mr6255309pgi.218.1605036696377; Tue, 10 Nov 2020 11:31:36 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036696; cv=none; d=google.com; s=arc-20160816; b=lPt1AHHotwt9X1RCJlBRCnqia4hceUC1nClSfy8cZfmCyY0EZXGKx7Cj/wMSY7KAye yVi0EW8XtVN6E97FYRU9HZpknJ9pRO8eKKguLmaHPlhry8GEq74uj2IUvQRN906vQH39 Pv+lZ+8L26rO1GUQ7lktWFXysCf3wR6OJVbkaEFQtVKoz6n93kBaQTlvkF05MZhmtWJB YxlD7tvADu7t+oGOx/iTspNkiWX0+xSYHqn8DPIpUvbP0z8z2Pe5gVWfDYXu+x6+RQRt 0eSUgRbR1xCHV1OpyxgAxGWl1xIZqm8WCr77+Ra7SmBGZr68y2dtcrtyu6dwtBMRoR/6 eJVg== 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=QwQJbpvjz3fKbcN8GYX3uyLVFAXYEy9obFsZF6ikbN0=; b=XPu/b8XfAhd82wIMxRl5WJiSQcr3hseTicJ5fjtRWs8jJC+f1ffQPx0AQkGowkozLV b/Y4F6xjEfmPJnBP5kJa373TY4FFJGi7FkBMjAXdaCAPbhlwH8t5PCxNadLJwROwVyuA COtdZEKjMsYhGFc3FDcSOStUpregn8NGW2jQYx8d1sAU+gDWB+rVlW+l0aSu6PzsPI2c D+H4RBhF4OrbUBJ9eQfhFYPmshF33TPhiQB8DlIP4IEHJhYDvhM6vIleLexnlSPUwyMM X7/TLZEkd63IV4gIy6iVxJU/s+tUv7xC9sFxHiWAo2LjDTlCgYubKA+8wGQ53q5A2as6 oqjg== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=VXWEbmSQ; 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 d3si10837938pld.76.2020.11.10.11.31.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:36 -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=VXWEbmSQ; 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 12A4489BF0; Tue, 10 Nov 2020 19:31:26 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x444.google.com (mail-wr1-x444.google.com [IPv6:2a00:1450:4864:20::444]) by gabe.freedesktop.org (Postfix) with ESMTPS id 10FAF89BDB for ; Tue, 10 Nov 2020 19:31:24 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id c17so14000106wrc.11 for ; Tue, 10 Nov 2020 11:31:23 -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=wRyVj7QwW9m8+QJhWlLMpTOCKbqNO9FAw2XMc+XmqfM=; b=VXWEbmSQdarwlsBZu0sGfm2zUAEFee1etW65JRLgltUoi+G+TEfeOZuvcOFOtETnCl BR5u0aCXUDMEWbkQM8dypexH5UgRgI4h6cG10ovPBfrlnJlxBhDfQdojqGQiEzWjkbv2 IP4UAKUedp43K+i37H+yZhL1bcqhNEp8De6a/VguzFgKA4iokYZ+bFOl3qn9hbp8enbe wxHwYjyBP15UyrKgnwQGKu5uSOZB5y9CI009lwCVp0s83UX9oHeQM4fjPomRExZibnxt pPN7DIs/GidNsVTpHOIdaS1azDjBDcohEpKiQ8LdZDfycd5MpkEQCRUpk8za67UsVFxp D19w== 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=wRyVj7QwW9m8+QJhWlLMpTOCKbqNO9FAw2XMc+XmqfM=; b=cxAyXrTVa74PJRl/sgpfdocGzDFHjJqeedIrgaf7ozibRJM/2EILf6jr7TycOQtylo x3jP0giUhGjrgWX3vqb0vHonn/8kjAmJVQf5rc+xbRPtwGxXIMTUe7SxCDupJl+pUfop SJsqxoD05hCPrVGdMrcbkb+GStAtwFHJ8IYbK4xLu9yBbBSCnpErGaiLv0pNmsJaHgwS UMxgsfpCjGgxUTq50KFdSeEKznp0GcoYXpwj2vqrFqOd8s6MVEVFWYCRTsgSa0QygM32 vbHTBbTHQXOHMfdB5z+VpOHSEdLbdV9VX8O683Oon/vCGiaTRDQz5cdkjhy73xuWIenj hxPg== X-Gm-Message-State: AOAM533TDIycZo8bA2yBVNd8HQyo1fI+qc5PhZrhHMuzf7hKA1AUZcPh YKX8Ayh23sNMFFLjhxypWCFAiQ== X-Received: by 2002:a5d:634c:: with SMTP id b12mr10100178wrw.130.1605036682691; Tue, 10 Nov 2020 11:31:22 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:22 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 05/30] drm/radeon/cik: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:30:47 +0000 Message-Id: <20201110193112.988999-6-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, =?utf-8?q?Christian_K=C3=B6nig?= , linaro-mm-sig@lists.linaro.org, dri-devel@lists.freedesktop.org, Alex Deucher , linux-media@vger.kernel.org Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/radeon/cik.c: In function ‘cik_gpu_init’: drivers/gpu/drm/radeon/cik.c:3180: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: 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/cik.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/cik.c b/drivers/gpu/drm/radeon/cik.c index 4494f9122fd91..b94e2e678f255 100644 --- a/drivers/gpu/drm/radeon/cik.c +++ b/drivers/gpu/drm/radeon/cik.c @@ -3177,7 +3177,7 @@ static void cik_setup_rb(struct radeon_device *rdev, static void cik_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = RREG32(GB_ADDR_CONFIG); - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 hdp_host_path_cntl; u32 tmp; int i, j; @@ -3270,7 +3270,7 @@ static void cik_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.cik.num_tile_pipes = rdev->config.cik.max_tile_pipes;