From patchwork Tue Nov 10 19:31:09 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 322879 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp500740ils; Tue, 10 Nov 2020 11:32:11 -0800 (PST) X-Google-Smtp-Source: ABdhPJwiqMkrk3Tz2aPdPNDdJQExXe80UmsDKSJAte3XGGnFgYS0lHXOqEpjy2yyewZEul+iIvuE X-Received: by 2002:aa7:97a7:0:b029:18b:cf28:9bbe with SMTP id d7-20020aa797a70000b029018bcf289bbemr15412994pfq.45.1605036731843; Tue, 10 Nov 2020 11:32:11 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605036731; cv=none; d=google.com; s=arc-20160816; b=JDZ2Q3nkb+f9KcU1ru+0Ro5wxUU/52cwTWftCk753huJ4LKpRmrCbwFGjDHWlcxC3f aFRDAO5+83xsUrrHDN8EcFnOSAZS69kd/gAz+eFdyMMy9uS158j/pCo0RKNY96ib+PZ6 q3/nbxRu1mqJjUjHMUKRW4aC7VVlDbSOJskuRuARHw6jsieE0hUV8g/1Z9TmxJhQsdGt Knd+N3J/rtd7Ovp9B5iozGWlLBbAMRD2442fDFVWf8w+TTKq1K/Pl4hjHqBL2yyJzYhq yVPffDaAOcUFOWIRtYMsPeqVFAD1qYMGD5M67rhLCDf2USllT/rioaX0uyrphOeigJ/Y S3kQ== 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=exUzCYeuM2/IPQJ76z4J4mZZvF5RbIOnmAhvRDCuSOo=; b=GfHC03oyIvNTNEaU3JJv24/IatZKqH3qkxUaqXg2EvEpxrhuns8x0H000h9J/7JXlW Xcv4QrfTsVoxtbOxugiX/E5btNKGF/O7Dhs3lgvZkGQp5EZvrbfdHkgj6KUdOmQuK+ex dlFGoqaDINA0nT0tfnP7O9n2G4mWeCVnDoxn6t6eFVzOPiaCLTjiXFj0+vbxYg+RBy0g YPlDDGU+CIBvcqtmKDPK7jc0NMxmJvYKe8NcLw6ZI6bX73aRQUC4q1Ldcs9F+JIphSzM Myw6V1bBsnGtlMKmrc0gh8xMFeckiwtz9xWkp+ucwa2xFPK1Rn0PHz+QFBKdxgSQuG2f JlBw== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b="ZJw8ND/9"; 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 101si3181602pld.216.2020.11.10.11.32.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:32:11 -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="ZJw8ND/9"; 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 5410589C6A; Tue, 10 Nov 2020 19:32:02 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by gabe.freedesktop.org (Postfix) with ESMTPS id 47FE989C28 for ; Tue, 10 Nov 2020 19:31:51 +0000 (UTC) Received: by mail-wr1-x443.google.com with SMTP id l1so9605965wrb.9 for ; Tue, 10 Nov 2020 11:31:51 -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=vvESdKcgA/L+8nfzHIhJWgogEA2sv/augj021aQ6Bjc=; b=ZJw8ND/9bYHNBVXDmU7GEhDFPjuFQlU5+Kc7N6oNwR9ygFDK9h6108LYish92o3sF/ 9g/r9hgfo91h9+hm6363YzrOl6p7qDErHiA41H2m/SyEkFBIK1eKvQpRgYJ+PMOa3sc4 cdV6C3R1MYOBMBoVWp5kuuVLyYMJAJaY7SZZPHrfzPPIWkia89ujnAdqCTK4SsUUqAgu ZEbs4WX1DiUH5nLcYf15NZRwanNF/NQCDt5HTmkWETCiTwwlnRWVRlhHZsJnb+vDopha jJJ8xIGlSLXcCgmuSRPC9e+9DvRgY4Y9vy1xLqk/bA4KjtMtC3+nHdawMzpnAPhx1QdJ C/8w== 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=vvESdKcgA/L+8nfzHIhJWgogEA2sv/augj021aQ6Bjc=; b=AgMLXorVEZhAKQW5paMHAwCMIiwSwkZZ8Ly26/dUp9egS4x4Krub3DWprC1HUZ5Iwe JRWJXy+uDBR0a8E9t3FZzPhvxp+nd0yHdx23F1c+n4a7bYhqWC2p+kqX2imTKBAtypVB 1L0vqyfX2W3s2C5G5Ap3qPtCSIAW/eRs8xFXOkNLivFygfwDXh/Y8p9Mjdq9/LXwowgI oqHUDp0TeovzfCge2g61WF7fMtWnZOntqds/Wi7dqv0CVZnRh+9iKOAfk1xZ2LrWuKR/ URuJLZavElwJMfCUcsNeC12zFi5c218LRmf/TVa/+IM+8swfy4Y4arpJGNBO42Ulcrdi psSg== X-Gm-Message-State: AOAM532TlpXeDFU4uqZF2cnNuxjNISAHc82uy6Q0LNKgtCoh3j86OhfJ iQhf7Hv0/+GFTdQIbbft3tbIcyLq7TtglKln X-Received: by 2002:adf:c3c8:: with SMTP id d8mr14030198wrg.366.1605036709871; Tue, 10 Nov 2020 11:31:49 -0800 (PST) Received: from dell.default ([91.110.221.139]) by smtp.gmail.com with ESMTPSA id 30sm17635335wrs.84.2020.11.10.11.31.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 10 Nov 2020 11:31:49 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 27/30] drm/radeon/ni: Remove set but unused variable 'mc_shared_chmap' Date: Tue, 10 Nov 2020 19:31:09 +0000 Message-Id: <20201110193112.988999-28-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/ni.c: In function ‘cayman_gpu_init’: drivers/gpu/drm/radeon/ni.c:880: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/ni.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/gpu/drm/radeon/ni.c b/drivers/gpu/drm/radeon/ni.c index 12dd082069649..1c9030a4631b8 100644 --- a/drivers/gpu/drm/radeon/ni.c +++ b/drivers/gpu/drm/radeon/ni.c @@ -877,7 +877,7 @@ int tn_get_temp(struct radeon_device *rdev) static void cayman_gpu_init(struct radeon_device *rdev) { u32 gb_addr_config = 0; - u32 mc_shared_chmap, mc_arb_ramcfg; + u32 mc_arb_ramcfg; u32 cgts_tcc_disable; u32 sx_debug_1; u32 smx_dc_ctl0; @@ -1002,7 +1002,7 @@ static void cayman_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); mc_arb_ramcfg = RREG32(MC_ARB_RAMCFG); tmp = (mc_arb_ramcfg & NOOFCOLS_MASK) >> NOOFCOLS_SHIFT;