From patchwork Fri Nov 13 13:49:27 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 324309 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:5ce:0:0:0:0 with SMTP id l14csp1213102ils; Fri, 13 Nov 2020 05:50:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJwXpBiM7VZvCKMZZmpk1oBk20GEpFY2PTbufS2IHuoTpj7eMLimIYKx3w3huzn/aBbJQC3T X-Received: by 2002:a17:90a:9f82:: with SMTP id o2mr3169200pjp.52.1605275438325; Fri, 13 Nov 2020 05:50:38 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605275438; cv=none; d=google.com; s=arc-20160816; b=aC20bV9E5ZQVa3MRDKr2eST0srhLzLEfw+BtHNh9vinjfr3u0kVNF1WMMxzTOhPfSM KnzGHClALSdEYpjnTAiO2mJGnsVyA7xo5HIBgBm6eqjzXB6sRVC2nnqGsvBk5FeeYIUI vefFqcaWoPNVsEpLCQDelDiea6kLPTktQ2M/a4U+8uQOSfyicNGWGTE1vvjGzS4EsvW8 h+ZseKP9Z/mLhXLqONftFwkBzjIEyeGw9MZr2k/vn6bDhCEM8HUfCA4CN+CjpDvkwqxh Oium+O6z9oToYdGD4Z7yqhx36eQpZu1i8WJYLvqp3dsqm6B4tZnpP3OP8ras0RvahuDC o4xg== 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=rBakl6a/jF/JqyegLzC5OCSaHl4p2c9B+SFvWn0JBXA=; b=UJ0UzjfZlZyFJBA4GgTltdD7J9GKLXHhNfZpry7vOgOi1IAyaja+eItdeKmQuSOtqS pzGem/aEMmyAGA3XTFNrPAMLGCdWZ7RWg5aZ0UsVQa+EnJGNEfnooFewJpjRXqOhkfnj zhZ5keSBEP/mpfokgL6jsarjdDSFa1DYAxoCy86tji6I8TSnEn5mjmELlkwHPcK7Mx2d lwilQJlyT37VPdTQoyYvb7j4pFfvBxj1sPrIQRo+95wb5kZmjCW5tZVlW+rSALwq5kp/ zpDY7NGmgNlJlwC8XZhYY0+1TXnxCwXEFx2YwLQIDHefxSLRHBlf5cD6AgNr9JrTuFx5 pmSA== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=MZqbEth6; 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 co12si7363475pjb.65.2020.11.13.05.50.38 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:38 -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=MZqbEth6; 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 92DA26E519; Fri, 13 Nov 2020 13:50:33 +0000 (UTC) X-Original-To: dri-devel@lists.freedesktop.org Delivered-To: dri-devel@lists.freedesktop.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by gabe.freedesktop.org (Postfix) with ESMTPS id 134886E542 for ; Fri, 13 Nov 2020 13:50:19 +0000 (UTC) Received: by mail-wm1-x341.google.com with SMTP id h62so8559989wme.3 for ; Fri, 13 Nov 2020 05:50:18 -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=0nBtcs67BpWpOtsS+lroYBZ8Diqx4j2HTgrmz/2vMqY=; b=MZqbEth6gfS7gsdu8IDgb7OmV3SEY4rst4Sy2mkC6oksoLOtw6fd22wjt+QT2/Yw2H 62bL1YqeHmtIX6VodEiiU+N74OMmHF2P3tuz/aHXhCn+9HMoG7z9b4NJBuXg6ytgHid6 HE2Sk7dx4QRuNx7vDJ1UG6liqfUrpDPgTGAY0pP+XzXaQQ1lqH4kw2gTA3NUxQtTrLtl wi0i/JshReJaWzdC+Wqguzyj/iwJZIDR2991HnAHfb2QxqoEFRV9LfJH38BHW6tTzqBW JZNCBDhKFa8U64wvxMiCTkhmUgv+ojpTS4RSvfMh6LDeBb9EPee4VhoqIC0Uh5N+lw+7 leMA== 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=0nBtcs67BpWpOtsS+lroYBZ8Diqx4j2HTgrmz/2vMqY=; b=eOSB/Fn/yOUtLkOuJCa68AHydvizgH9v4PGu2bus+Z6Pv5/HZa9K9NMan1pj3N/NWY vhBFE5Cqx5yAQu5/vNyO05HXP0l9YQjs4aNLr1ERXXpF4Syl3sdnXy1Tdg+jPjGaDABQ zC4s8cfRuXWL7pMODAgzl88CGlGbrXlEYkig2scKo+vygl1XmTDnD5kQZbs8WAxlZAky 1IUzSfnFqXdvf3flrKJpT71VtkMKYid3oslN+lOO514Ic2meEU9SN6aHPRNuMw7yUOwO HkWzXVPwx/bdqPyI3p6mE0twIL+ypotLflAbLgfEYrSlib8Rg95Fn7ggE7wvEpYW0H9A GhCQ== X-Gm-Message-State: AOAM5337TH+uu8hR6jjQ+zBDMiC1esjEnf3QuIAL3Dn/H5RQ0+5X3RpL VeBNA/dGy6C4OfGfOCgGjiONDA== X-Received: by 2002:a7b:c089:: with SMTP id r9mr2532584wmh.45.1605275417717; Fri, 13 Nov 2020 05:50:17 -0800 (PST) Received: from dell.default ([91.110.221.159]) by smtp.gmail.com with ESMTPSA id t11sm4561614wrm.8.2020.11.13.05.50.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Nov 2020 05:50:17 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 29/40] drm/amd/amdgpu/amdgpu_csa: Remove set but unused variable 'r' Date: Fri, 13 Nov 2020 13:49:27 +0000 Message-Id: <20201113134938.4004947-30-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201113134938.4004947-1-lee.jones@linaro.org> References: <20201113134938.4004947-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?= , Monk.liu@amd.com Errors-To: dri-devel-bounces@lists.freedesktop.org Sender: "dri-devel" Fixes the following W=1 kernel build warning(s): drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c: In function ‘amdgpu_allocate_static_csa’: drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c:40:6: warning: variable ‘r’ set but not used [-Wunused-but-set-variable] Cc: Alex Deucher Cc: "Christian König" Cc: David Airlie Cc: Daniel Vetter Cc: Monk.liu@amd.com Cc: amd-gfx@lists.freedesktop.org Cc: dri-devel@lists.freedesktop.org Signed-off-by: Lee Jones --- drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c index 08047bc4d5886..da21e60bb8272 100644 --- a/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c +++ b/drivers/gpu/drm/amd/amdgpu/amdgpu_csa.c @@ -37,10 +37,9 @@ uint64_t amdgpu_csa_vaddr(struct amdgpu_device *adev) int amdgpu_allocate_static_csa(struct amdgpu_device *adev, struct amdgpu_bo **bo, u32 domain, uint32_t size) { - int r; void *ptr; - r = amdgpu_bo_create_kernel(adev, size, PAGE_SIZE, + amdgpu_bo_create_kernel(adev, size, PAGE_SIZE, domain, bo, NULL, &ptr); if (!*bo)