Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp315943imu; Wed, 7 Nov 2018 18:06:03 -0800 (PST) X-Google-Smtp-Source: AJdET5cQI5Bmy1IVrXXFAv0axw71KV4yyFjCkeZYYMjvnAQY7n4VaAPnRYLV4bbmx1H7SD8dkwNz X-Received: by 2002:a17:902:650a:: with SMTP id b10-v6mr2684250plk.36.1541642763519; Wed, 07 Nov 2018 18:06:03 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1541642763; cv=none; d=google.com; s=arc-20160816; b=0CWcOAIm3nauQWr74s/28ElUjNNQEkU1hKMNj8LvV7R4+an3qS2jVUSXbPF5ccJBcu s8ADDHfaZeKAZMVU9pkIXdE92ZtuqeytPJzrR/PvTWnnjUZaFmqMo4NXLOZgwaiKBNYX hw1IRC5Vj/b953zYQu3Ncrn5gVHTETMxZ3scaEO385IOqZv/Txci+muLL88Kv/Bi9ktE i4kv9zj4I62vC1gzqzivI1pU23bqUJjrqkUswKHtOk7tdXKu83DAMd+7rQqeC3kzzwDO lj+8PUtl3rGgOtFBo4dK5txjRjAp1r1l9MJVko5LMHzbdA9cmQEGX+u7tssEiAZwOJDz ImLw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :message-id:date:subject:cc:to:from; bh=EbFfsW0Jh/RFdI8yexIY0/t6ESzSPPK0XskbybncovQ=; b=zQtTWMqJQajuD0ukVgqY0rLjWhKF3BRvegAR0MlVLrGPQ5Vp2jqlvMGzd7ZNUK71+c M6BbR+wGHc/noQkCpk5WxbDIF0iwlJ/lsFXuLnywouGj89Xa+W/ThDoVQHbnC1AbgW97 lyxEhG8+4OVralPANVjdk80xogjx7EQqTwVbNergDTD72SR09/TbQFoj+5uUaqiHNiN1 J9lNqipT3RpsWIvjj75HYAsLyqdW9UZIhyvz9Aht4lv/ZXx9nV4mfVUsHPHxMGjT1e2X lEAFwzW5SZaX46hI/zegAvte4h6oCdEcNUm2hu/vHCVKkx5jxcUQRZjDH4Gx52mF9OsO 9/AQ== 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 f11-v6si2536129plo.199.2018.11.07.18.05.45; Wed, 07 Nov 2018 18:06:03 -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 S1728562AbeKHLia (ORCPT + 99 others); Thu, 8 Nov 2018 06:38:30 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:14192 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728523AbeKHLi3 (ORCPT ); Thu, 8 Nov 2018 06:38:29 -0500 Received: from DGGEMS411-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id B5C85B5AFC6E7; Thu, 8 Nov 2018 10:05:19 +0800 (CST) Received: from localhost.localdomain.localdomain (10.175.113.25) by DGGEMS411-HUB.china.huawei.com (10.3.19.211) with Microsoft SMTP Server id 14.3.408.0; Thu, 8 Nov 2018 10:05:15 +0800 From: YueHaibing To: Christian Koenig , Huang Rui , Junwei Zhang , David Airlie CC: YueHaibing , , , Subject: [PATCH -next] drm/ttm: remove set but not used variable 'driver' Date: Thu, 8 Nov 2018 02:15:00 +0000 Message-ID: <1541643300-109641-1-git-send-email-yuehaibing@huawei.com> X-Mailer: git-send-email 1.8.3.1 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit MIME-Version: 1.0 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/ttm/ttm_execbuf_util.c: In function 'ttm_eu_fence_buffer_objects': drivers/gpu/drm/ttm/ttm_execbuf_util.c:190:24: warning: variable 'driver' set but not used [-Wunused-but-set-variable] It not used any more after commit f2c24b83ae90 ("drm/ttm: flip the switch, and convert to dma_fence") Signed-off-by: YueHaibing --- drivers/gpu/drm/ttm/ttm_execbuf_util.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/drivers/gpu/drm/ttm/ttm_execbuf_util.c b/drivers/gpu/drm/ttm/ttm_execbuf_util.c index e493edb..efa005a 100644 --- a/drivers/gpu/drm/ttm/ttm_execbuf_util.c +++ b/drivers/gpu/drm/ttm/ttm_execbuf_util.c @@ -187,14 +187,12 @@ void ttm_eu_fence_buffer_objects(struct ww_acquire_ctx *ticket, struct ttm_buffer_object *bo; struct ttm_bo_global *glob; struct ttm_bo_device *bdev; - struct ttm_bo_driver *driver; if (list_empty(list)) return; bo = list_first_entry(list, struct ttm_validate_buffer, head)->bo; bdev = bo->bdev; - driver = bdev->driver; glob = bo->bdev->glob; spin_lock(&glob->lru_lock);