Received: by 2002:ac0:946b:0:0:0:0:0 with SMTP id j40csp1174728imj; Thu, 14 Feb 2019 02:25:43 -0800 (PST) X-Google-Smtp-Source: AHgI3IYcaHayO1UqNudfcGlz3YjDt/6arvirj+ne/t8p+K4XSZDwsxfyBq0EgnlsdSL2jxDLhvfW X-Received: by 2002:a17:902:2ba8:: with SMTP id l37mr3319640plb.243.1550139943676; Thu, 14 Feb 2019 02:25:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1550139943; cv=none; d=google.com; s=arc-20160816; b=BzK7WoGdMeCE5R5GUiiBQUbEUNZvrcU0gpwu77vuNOfv8dZs9EE5gGWBopYyP70RbA aj8EeSaOb0gEOULqsSKXN18waZ+tRrgDhO21TblPQEh/T+0BTnZXigKpzDejG/nvHdOs nJ4Sos7NFNd7k7njl5+0KEyp9W1dYjAjAmqx3YH80KlDhaYrvAV78G72AlfipiuyPmVf vxOylMkO6gbAJF1rUtPe5qxNYvMG4HHlcF8jlc415d2rMsqU1EE58JxQfo6zgoNZFx/Y bhflvYCeNIlJ0021dT4VwktrrQAJeGF2GCWVy/fi/vL9xFdX2xnm1nKEmIXOImqTe5pM EpoA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=QHCo8+p8vLY0x4SHJmgwOrbdM5pkaVnyqzWPpCyXr9E=; b=qYvXWuUe/XohavZ+csJvi7Wj9saDUh/Y2iU6wGDcAiuaOJQ7HIB5hyRMkgizQIKSah 8ZOFDsl0cgnQvpmyuJqZOFUc2/LIrcMSmhHXyju1leoEPlQ0uxz/DrPqJ49GC1+9VDZy vla4zUvxCqhgPFVoHcNSermg31WLBkpewrXVRyk1esorsNoU1F1x+L1ngKMZxAcu1BxS PoLBkAHp8YB9kiYC5fFBCugVnVsUMvnEcccCze6dV0Wtbekq//m86yecPwLdTiUQj5Vj X+cSn+u156Bka938RGorcUiJj7XONDtoIMKZGhyVIe4nwI8HHm+EULGvxoMci8rY6pvp 8zCw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d15si1895867pgv.583.2019.02.14.02.25.26; Thu, 14 Feb 2019 02:25:43 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2392154AbfBNByP (ORCPT + 99 others); Wed, 13 Feb 2019 20:54:15 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:36998 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728246AbfBNByO (ORCPT ); Wed, 13 Feb 2019 20:54:14 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 0C08CB086F2D889174B8; Thu, 14 Feb 2019 09:54:13 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.408.0; Thu, 14 Feb 2019 09:54:03 +0800 From: YueHaibing To: VMware Graphics , Thomas Hellstrom , David Airlie , Daniel Vetter CC: YueHaibing , , , Subject: [PATCH -next] drm/vmwgfx: Remove set but not used variable 'restart' Date: Thu, 14 Feb 2019 02:08:04 +0000 Message-ID: <20190214020804.22935-1-yuehaibing@huawei.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT X-Originating-IP: [10.175.113.25] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fixes gcc '-Wunused-but-set-variable' warning: drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c: In function 'vmw_cmdbuf_work_func': drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c:514:7: warning: variable 'restart' set but not used [-Wunused-but-set-variable] It not used any more after commit dc366364c4ef ("drm/vmwgfx: Fix multiple command buffer context use") Signed-off-by: YueHaibing --- drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c index 70dab55e7888..ed15655eacd2 100644 --- a/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c +++ b/drivers/gpu/drm/vmwgfx/vmwgfx_cmdbuf.c @@ -511,17 +511,14 @@ static void vmw_cmdbuf_work_func(struct work_struct *work) container_of(work, struct vmw_cmdbuf_man, work); struct vmw_cmdbuf_header *entry, *next; uint32_t dummy; - bool restart[SVGA_CB_CONTEXT_MAX]; bool send_fence = false; struct list_head restart_head[SVGA_CB_CONTEXT_MAX]; int i; struct vmw_cmdbuf_context *ctx; bool global_block = false; - for_each_cmdbuf_ctx(man, i, ctx) { + for_each_cmdbuf_ctx(man, i, ctx) INIT_LIST_HEAD(&restart_head[i]); - restart[i] = false; - } mutex_lock(&man->error_mutex); spin_lock(&man->lock); @@ -533,7 +530,6 @@ static void vmw_cmdbuf_work_func(struct work_struct *work) const char *cmd_name; list_del_init(&entry->list); - restart[entry->cb_context] = true; global_block = true; if (!vmw_cmd_describe(header, &error_cmd_size, &cmd_name)) {