From patchwork Tue Nov 24 19:38:17 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 331438 Delivered-To: patch@linaro.org Received: by 2002:a92:5e16:0:0:0:0:0 with SMTP id s22csp796073ilb; Tue, 24 Nov 2020 11:45:20 -0800 (PST) X-Google-Smtp-Source: ABdhPJyUhJSrUuuLQa2DC0IZelA6LowLl4Bn3bqTgP1HbwPkAUidewANWBN2JvwKorZbyAa26Dxq X-Received: by 2002:a17:90a:8d:: with SMTP id a13mr157489pja.227.1606247120693; Tue, 24 Nov 2020 11:45:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1606247120; cv=none; d=google.com; s=arc-20160816; b=x2q1tavXq3LYyyTzYmWuLxWd/TO21I0kiohfW1o9XLjfeqkZ3WuBp6eLM0syhozWVU j9GZq3f/ch0n9iwBYwNExIfinoH1nh8kWLajQ5bdXchEciCt9k4LegCArEuodreqfQhU RPy8sLSCIsaaukYo36EiuB/yBhYtP33vUpiNhZb78cZSAh1dmDhoFis9r9ncZRB5qZZi CZPfmPlCJ5S22q1oR7/YOKVgGYvv1bM35FuFbXWIO5sCLUmjJIXH/VG8EzW1/TL1piEc +Me1b9e+YaLTRhy0sIeUFjGj/P2q7UCW+vNbf8SO58O3K9pHkueCji27jF7WZeQJ2CKE x2pQ== 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=ZmoCNS9b74vyVvp/RqRIOZz2ajM4xRIh8W9E3Vh2v7M=; b=n+MiS0ZXHdSNrJOyNGLErADxRgybag/Ba3TL4vMtdGQQ42z1OLgECtHAPPe4Ytijrw OtsgoWcf9Pc+i67he//9CMOfLZ5pH5FwUUj0FO6qg24soyjfm9wJ/eHanUMR2KhIx0oE hc0J9h1gGZNrXGIS3eH6/59wfH45RyyDBrlTdsqTl1v/Y1uma5X8xkNxVQ6OHcEQRg+K WzJzQMH5o0E85Fj8cmGAVDhNOK5HRIPA/pPrrftPkryHzNzAvZ4ZyFa1+rH03IjXt8EL DXrpIBdZq6mjQvp4x1x3kRG5G38k3MKvOYLon0zPAw9CG4mNQJa60GhPuYOEJAnPChzC KOYQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org header.s=google header.b=HDVEve22; 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 i191si14695567pgc.224.2020.11.24.11.45.20 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:45:20 -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=HDVEve22; 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 B02B16E573; Tue, 24 Nov 2020 19:44:51 +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 9CD0B6E529 for ; Tue, 24 Nov 2020 19:44:41 +0000 (UTC) Received: by mail-wr1-x444.google.com with SMTP id s8so23510161wrw.10 for ; Tue, 24 Nov 2020 11:44:41 -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=Ea+MZ4SETfT4WFr3DgwI9kjy4D+XbqEDvpGgUqZKcMo=; b=HDVEve22PQjQLPJNjH06mAipBi1w1c7FoGv7APARQFJEB8Lr7iNE1bZmbMz/vKKHML MQbRNDETI8MJrbuDGnUlheO5oFIYvZhdgDkHAWeSfRGV1g30bzYvMQC0uEsTFezPno+9 UfEdVjcFhZTiVurEuXLqw5ZwLN5D4ZJ7ZS3kLSvAEnWM2zOsNvbeT9xnwv53Fi3X9pHC a7tn66AwHqo1Sj+a3BtoVJKB/w0noZKMEJQGi2O4xjUktRfbFIY/yWoLkJgvzDOnwNsz WfchD4urO01qtQaCsZzEiMMD1eTjxmLWUBlzX04sdihIgMKaIKJu5vEY/dxR3jXH12Hf yHCA== 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=Ea+MZ4SETfT4WFr3DgwI9kjy4D+XbqEDvpGgUqZKcMo=; b=VUdupruoiOz5ygkDS/P3ZZsVyQ8HECd7nW8dXZa3SIwfNhPM+nc4aRIwO11ZpufRkF EtijyluETl7+kKgu6l0kxMGzbSIzkQcztSUJ1wNtBlJ6lYsaPrxWbyhoX1gO15r9zo9l aiUfY54nG0o2Dmr1qXaMxP7hNGomAVV4mtCfzvKBy1H/ctbLLDMopeXMvve1eGNo1U96 XdfXO7UVSFnkZWZXCnSSg1avpEfkTROslwAWEumHv7g6gdtJDrdyiZh5xqNTo3J8q31x VZNXVlms6p943YIHA9t9QIBYfyIp5RvAgfm22RBYBzl+3iYWddsuhgM3skL3LOYTcYP1 ykAQ== X-Gm-Message-State: AOAM5317uN3uoLEZVDyemLK2QyLyy4GYMkCVYV1LoSUeWrHA5shO7cVG uOc7MnJAw7XatFEs6JQWPm+R0Q== X-Received: by 2002:adf:bd86:: with SMTP id l6mr66630wrh.205.1606247080372; Tue, 24 Nov 2020 11:44:40 -0800 (PST) Received: from dell.default ([91.110.221.235]) by smtp.gmail.com with ESMTPSA id d134sm200511wmd.8.2020.11.24.11.44.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Nov 2020 11:44:39 -0800 (PST) From: Lee Jones To: lee.jones@linaro.org Subject: [PATCH 33/40] drm/amd/amdgpu/vcn_v3_0: Remove unused variable 'direct_poll' from 'vcn_v3_0_start_sriov()' Date: Tue, 24 Nov 2020 19:38:17 +0000 Message-Id: <20201124193824.1118741-34-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201124193824.1118741-1-lee.jones@linaro.org> References: <20201124193824.1118741-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/amd/amdgpu/vcn_v3_0.c: In function ‘vcn_v3_0_start_sriov’: drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c:1242:3: warning: variable ‘direct_poll’ 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/amd/amdgpu/vcn_v3_0.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c index c5e0a531cabaf..e05af69651723 100644 --- a/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c +++ b/drivers/gpu/drm/amd/amdgpu/vcn_v3_0.c @@ -1238,8 +1238,6 @@ static int vcn_v3_0_start_sriov(struct amdgpu_device *adev) direct_wt = { {0} }; struct mmsch_v3_0_cmd_direct_read_modify_write direct_rd_mod_wt = { {0} }; - struct mmsch_v3_0_cmd_direct_polling - direct_poll = { {0} }; struct mmsch_v3_0_cmd_end end = { {0} }; struct mmsch_v3_0_init_header header; @@ -1247,8 +1245,6 @@ static int vcn_v3_0_start_sriov(struct amdgpu_device *adev) MMSCH_COMMAND__DIRECT_REG_WRITE; direct_rd_mod_wt.cmd_header.command_type = MMSCH_COMMAND__DIRECT_REG_READ_MODIFY_WRITE; - direct_poll.cmd_header.command_type = - MMSCH_COMMAND__DIRECT_REG_POLLING; end.cmd_header.command_type = MMSCH_COMMAND__END;